BPicture: Fix archive constructor.
[haiku.git] / src / add-ons / kernel / bus_managers / pci / arch / m68k / pci_io.c
blobb9f872cef21ef0e01f78b135843e9fd7907fe63c
1 /*
2 * Copyright 2007, François Revol <revol@free.fr>.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "pci_io.h"
8 #include "pci_private.h"
11 status_t
12 pci_io_init()
14 return B_OK;
18 uint8
19 pci_read_io_8(int mapped_io_addr)
21 return m68k_in8((vuint8*)mapped_io_addr);
25 void
26 pci_write_io_8(int mapped_io_addr, uint8 value)
28 m68k_out8((vuint8*)mapped_io_addr, value);
32 uint16
33 pci_read_io_16(int mapped_io_addr)
35 return m68k_in16((vuint16*)mapped_io_addr);
39 void
40 pci_write_io_16(int mapped_io_addr, uint16 value)
42 m68k_out16((vuint16*)mapped_io_addr, value);
46 uint32
47 pci_read_io_32(int mapped_io_addr)
49 return m68k_in32((vuint32*)mapped_io_addr);
53 void
54 pci_write_io_32(int mapped_io_addr, uint32 value)
56 m68k_out32((vuint32*)mapped_io_addr, value);