Go to the documentation of this file. 43 #if defined( MBG_TGT_NETWARE ) 47 #elif defined( MBG_TGT_OS2 ) 51 #elif defined( MBG_TGT_WIN32 ) 53 #if !defined( MBG_TGT_WIN32_PNP ) 57 #elif defined( MBG_TGT_LINUX ) 61 #elif defined( MBG_TGT_QNX ) 65 #elif defined( MBG_TGT_DOS ) 85 #if !defined( pci_fnc_init ) 86 #define pci_fnc_init() 0 89 #if !defined( pci_fnc_deinit ) 90 #define pci_fnc_deinit() 94 #if !defined( _mbg_pci_find_bios ) 95 #define _mbg_pci_find_bios mbg_pci_find_bios 98 #if !defined( _mbg_pci_find_device ) 99 #define _mbg_pci_find_device mbg_pci_find_device 103 #if defined( MBG_PCI_MACROS_MAP_DIRECT ) 105 #define _mbg_pci_find_device mbg_pci_find_device 106 #define _mbg_pci_read_cfg_byte mbg_pci_read_cfg_byte 107 #define _mbg_pci_read_cfg_word mbg_pci_read_cfg_word 108 #define _mbg_pci_read_cfg_dword mbg_pci_read_cfg_dword 109 #define _mbg_pci_write_cfg_byte mbg_pci_write_cfg_byte 110 #define _mbg_pci_write_cfg_word mbg_pci_write_cfg_word 111 #define _mbg_pci_write_cfg_dword mbg_pci_write_cfg_dword 113 #endif // defined( MBG_PCI_MACROS_MAP_DIRECT ) 116 #if defined( MBG_PCI_MACROS_MAP_GENERIC ) 118 #define _mbg_pci_read_cfg_byte( bus, dev_fnc, reg, addr ) \ 119 mbg_pci_read_cfg_reg( bus, dev_fnc, reg, sizeof( uint8_t ), addr ) 121 #define _mbg_pci_read_cfg_word( bus, dev_fnc, reg, addr ) \ 122 mbg_pci_read_cfg_reg( bus, dev_fnc, reg, sizeof( uint16_t ), addr ) 124 #define _mbg_pci_read_cfg_dword( bus, dev_fnc, reg, addr ) \ 125 mbg_pci_read_cfg_reg( bus, dev_fnc, reg, sizeof( uint32_t ), addr ) 128 #define _mbg_pci_write_cfg_byte( bus, dev_fnc, reg, addr ) \ 129 mbg_pci_write_cfg_reg( bus, dev_fnc, reg, sizeof( uint8_t ), addr ) 131 #define _mbg_pci_write_cfg_word( bus, dev_fnc, reg, addr ) \ 132 mbg_pci_write_cfg_reg( bus, dev_fnc, reg, sizeof( uint16_t ), addr ) 134 #define _mbg_pci_write_cfg_dword( bus, dev_fnc, reg, addr ) \ 135 mbg_pci_write_cfg_reg( bus, dev_fnc, reg, sizeof( uint32_t ), addr ) 137 #endif // defined( MBG_PCI_MACROS_MAP_GENERIC )