1 /******************************************************************************
2 * Copyright (c) 2004, 2008 IBM Corporation
4 * This program and the accompanying materials
5 * are made available under the terms of the BSD License
6 * which accompanies this distribution, and is available at
7 * http://www.opensource.org/licenses/bsd-license.php
10 * IBM Corporation - initial implementation
11 *****************************************************************************/
22 unsigned int read_io(void *addr, size_t sz)
28 ret = ci_read_8(addr);
31 ret = ci_read_16(addr);
34 ret = ci_read_32(addr);
43 int write_io(void *addr, unsigned int value, size_t sz)
47 ci_write_8(addr, value);
50 ci_write_16(addr, value);
53 ci_write_32(addr, value);