From 14b537e1420ccbb3f362f7f07e17cc9d7e1d9d88 Mon Sep 17 00:00:00 2001 From: beveloper Date: Wed, 17 Sep 2003 01:00:14 +0000 Subject: [PATCH] added new private header file for new pci module. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4717 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/pci_priv.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 headers/private/kernel/pci_priv.h diff --git a/headers/private/kernel/pci_priv.h b/headers/private/kernel/pci_priv.h new file mode 100644 index 0000000000..99fb257d73 --- /dev/null +++ b/headers/private/kernel/pci_priv.h @@ -0,0 +1,15 @@ +#include +#include + +status_t pci_config_init(); +uint32 read_pci_config(uint8 bus, uint8 device, uint8 function, uint8 offset, uint8 size); +void write_pci_config(uint8 bus, uint8 device, uint8 function, uint8 offset, uint8 size, uint32 value); + +status_t pci_io_init(); +uint8 read_io_8(int mapped_io_addr); +void write_io_8(int mapped_io_addr, uint8 value); +uint16 read_io_16(int mapped_io_addr); +void write_io_16(int mapped_io_addr, uint16 value); +uint32 read_io_32(int mapped_io_addr); +void write_io_32(int mapped_io_addr, uint32 value); +void * ram_address(const void *physical_address_in_system_memory);