/vbox/src/VBox/Devices/PC/ipxe/src/drivers/bus/ |
H A D | pci.c | 4 * Based in part on pci.c from Etherboot 5.4, by Ken Yap and David 31 #include <ipxe/pci.h> 44 * @v pci PCI device 55 static unsigned long pci_bar ( struct pci_device *pci, unsigned int reg ) { argument 59 pci_read_config_dword ( pci, reg, &low ); 62 pci_read_config_dword ( pci, reg + 4, &high ); 67 DBGC ( pci, PCI_FMT " unhandled 64-bit BAR " 69 PCI_ARGS ( pci ), high, low ); 80 * @v pci PCI device 91 unsigned long pci_bar_start ( struct pci_device *pci, unsigne argument 277 struct pci_device *pci = NULL; local 347 struct pci_device *pci; local [all...] |
H A D | pcibackup.c | 22 #include <ipxe/pci.h> 34 * @v pci PCI device 39 pci_backup_excluded ( struct pci_device *pci, unsigned int offset, argument 46 DBGC ( pci, "PCI %p skipping configuration offset " 47 "%02x\n", pci, offset ); 57 * @v pci PCI device 61 void pci_backup ( struct pci_device *pci, struct pci_config_backup *backup, argument 68 if ( ! pci_backup_excluded ( pci, offset, exclude ) ) 69 pci_read_config_dword ( pci, offset, dword ); 76 * @v pci PC 80 pci_restore( struct pci_device *pci, struct pci_config_backup *backup, const uint8_t *exclude ) argument [all...] |
H A D | pciextra.c | 4 #include <ipxe/pci.h> 9 * @v pci PCI device to query 18 int pci_find_capability ( struct pci_device *pci, int cap ) { argument 24 pci_read_config_word ( pci, PCI_STATUS, &status ); 28 pci_read_config_byte ( pci, PCI_HEADER_TYPE, &hdr_type ); 33 pci_read_config_byte ( pci, PCI_CAPABILITY_LIST, &pos ); 36 pci_read_config_byte ( pci, PCI_CB_CAPABILITY_LIST, &pos ); 41 pci_read_config_byte ( pci, pos + PCI_CAP_LIST_ID, &id ); 47 pci_read_config_byte ( pci, pos + PCI_CAP_LIST_NEXT, &pos ); 55 * @v pci PC 62 pci_bar_size( struct pci_device *pci, unsigned int reg ) argument [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/util/ |
H A D | disrom.pl | 48 my $pci = $rom->pci_header(); 49 if ( $pci ) { 51 printf " %-16s %s\n", "Signature:", $pci->{signature}; 52 printf " %-16s 0x%04x\n", "Vendor ID:", $pci->{vendor_id}; 53 printf " %-16s 0x%04x\n", "Device ID:", $pci->{device_id}; 55 $pci->{base_class}, $pci->{sub_class}, $pci->{prog_intf}; 57 $pci->{image_length}, ( $pci [all...] |
H A D | catrom.pl | 32 ( my $pci ) = unpack ( 'v', substr ( $romdata, PCI_OFF, 2 ) ); 34 if $pci >= $len; 36 unless substr ( $romdata, $pci, 4 ) eq "PCIR"; 39 unpack ( 'C', substr ( $romdata, $pci + INDICATOR_OFF, 1 ) ); 44 substr ( $romdata, $pci + INDICATOR_OFF, 1 ) = pack ( 'C', $indicator );
|
H A D | swapdevids.pl | 38 ($pci, $pnp) = unpack('v2', substr($data, 0x18, 4)); 39 ($pci < $len and $pnp < $len) or die "$file: Not a PCI PnP ROM image\n"; 40 (substr($data, $pci, 4) eq 'PCIR' and substr($data, $pnp, 4) eq '$PnP') 42 &swaplocs(\$data, $pci+13, $pci+15); 47 print "PCI devids now: ", &printdevids(\$data, $pci+13), "\n";
|
/vbox/src/VBox/Devices/PC/ipxe/src/include/ipxe/efi/ |
H A D | efi_pci_api.h | 30 extern int efipci_read ( struct pci_device *pci, unsigned long location, 32 extern int efipci_write ( struct pci_device *pci, unsigned long location, 49 * @v pci PCI device 55 PCIAPI_INLINE ( efi, pci_read_config_byte ) ( struct pci_device *pci, 58 return efipci_read ( pci, 66 * @v pci PCI device 72 PCIAPI_INLINE ( efi, pci_read_config_word ) ( struct pci_device *pci, 75 return efipci_read ( pci, 83 * @v pci PCI device 89 PCIAPI_INLINE ( efi, pci_read_config_dword ) ( struct pci_device *pci, [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/arch/x86/include/ipxe/ |
H A D | pcidirect.h | 26 extern void pcidirect_prepare ( struct pci_device *pci, int where ); 42 * @v pci PCI device 48 PCIAPI_INLINE ( direct, pci_read_config_byte ) ( struct pci_device *pci, 51 pcidirect_prepare ( pci, where ); 59 * @v pci PCI device 65 PCIAPI_INLINE ( direct, pci_read_config_word ) ( struct pci_device *pci, 68 pcidirect_prepare ( pci, where ); 76 * @v pci PCI device 82 PCIAPI_INLINE ( direct, pci_read_config_dword ) ( struct pci_device *pci, 85 pcidirect_prepare ( pci, wher [all...] |
H A D | pcibios.h | 30 extern int pcibios_read ( struct pci_device *pci, uint32_t command, 32 extern int pcibios_write ( struct pci_device *pci, uint32_t command, 38 * @v pci PCI device 44 PCIAPI_INLINE ( pcbios, pci_read_config_byte ) ( struct pci_device *pci, 50 rc = pcibios_read ( pci, PCIBIOS_READ_CONFIG_BYTE | where, &tmp ); 58 * @v pci PCI device 64 PCIAPI_INLINE ( pcbios, pci_read_config_word ) ( struct pci_device *pci, 70 rc = pcibios_read ( pci, PCIBIOS_READ_CONFIG_WORD | where, &tmp ); 78 * @v pci PCI device 84 PCIAPI_INLINE ( pcbios, pci_read_config_dword ) ( struct pci_device *pci, [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/arch/i386/drivers/net/ |
H A D | undi.c | 25 #include <ipxe/pci.h> 41 * @v pci PCI device 47 static struct undi_rom * undipci_find_rom ( struct pci_device *pci ) { 51 rombase = pci_bar_start ( pci, PCI_ROM_ADDRESS ); 52 undirom = undirom_find_pci ( pci->vendor, pci->device, rombase ); 54 undirom = undirom_find_pci ( pci->vendor, pci->device, 0 ); 61 * @v pci PCI device 65 static int undipci_probe ( struct pci_device *pci ) { [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/nvs/ |
H A D | nvsvpd.c | 24 #include <ipxe/pci.h> 48 struct pci_device *pci = nvsvpd->vpd.pci; local 60 DBGC ( pci, PCI_FMT " NVS VPD could not locate field " 61 PCI_VPD_FIELD_FMT ": %s\n", PCI_ARGS ( pci ), 68 DBGC ( pci, PCI_FMT " NVS VPD cannot read %#02zx bytes " 70 PCI_ARGS ( pci ), len, PCI_VPD_FIELD_ARGS ( field ), 77 DBGC ( pci, PCI_FMT " NVS VPD could not read field " 79 PCI_ARGS ( pci ), PCI_VPD_FIELD_ARGS ( field ), 100 struct pci_device *pci local 149 struct pci_device *pci = nvsvpd->vpd.pci; local 217 struct pci_device *pci = nvsvpd->vpd.pci; local [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/include/ipxe/ |
H A D | pci_io.h | 61 * @v pci PCI device 66 int pci_read_config_byte ( struct pci_device *pci, unsigned int where, 72 * @v pci PCI device 77 int pci_read_config_word ( struct pci_device *pci, unsigned int where, 83 * @v pci PCI device 88 int pci_read_config_dword ( struct pci_device *pci, unsigned int where, 94 * @v pci PCI device 99 int pci_write_config_byte ( struct pci_device *pci, unsigned int where, 105 * @v pci PCI device 110 int pci_write_config_word ( struct pci_device *pci, unsigne [all...] |
H A D | pcibackup.h | 26 extern void pci_backup ( struct pci_device *pci, 29 extern void pci_restore ( struct pci_device *pci,
|
/vbox/src/VBox/Devices/PC/ipxe/src/arch/x86/core/ |
H A D | pcidirect.c | 22 #include <ipxe/pci.h> 33 * @v pci PCI device 36 void pcidirect_prepare ( struct pci_device *pci, int where ) { argument 37 outl ( ( 0x80000000 | ( pci->busdevfn << 8 ) | ( where & ~3 ) ),
|
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/vxge/ |
H A D | vxge.c | 10 #include <ipxe/pci.h>
|
/vbox/src/VBox/Devices/PC/ipxe/src/tests/ |
H A D | bofm_test.c | 26 #include <ipxe/pci.h> 98 * @v pci PCI device 100 void bofm_test ( struct pci_device *pci ) { 103 printf ( "BOFMTEST using " PCI_FMT "\n", PCI_ARGS ( pci ) ); 107 bofmtab_harvest.en.busdevfn = pci->busdevfn; 109 bofmrc = bofm ( virt_to_user ( &bofmtab_harvest ), pci ); 121 bofmtab_update.en.busdevfn = pci->busdevfn; 123 bofmrc = bofm ( virt_to_user ( &bofmtab_update ), pci ); 139 struct pci_device pci; local 154 memset ( &pci, [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/ |
H A D | prism2_pci.c | 28 #include <ipxe/pci.h> 34 static int prism2_pci_probe ( struct nic *nic, struct pci_device *pci ) { 37 printf ( "Prism2.5 has registers at %#lx\n", pci->membase ); 38 hw->membase = ioremap ( pci->membase, 0x100 ); 40 nic->ioaddr = pci->membase;
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.16.0/ |
H A D | dixfontstr.h | 51 #define FONTGLYPHBITS(base,pci) ((unsigned char *) (pci)->bits) 74 #define GLYPHWIDTHBYTESPADDED(pci) (GLYPHWIDTHBYTES(pci)) 79 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+1) & ~0x1) 84 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+3) & ~0x3) 89 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci) [all...] |
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.17.1/ |
H A D | dixfontstr.h | 51 #define FONTGLYPHBITS(base,pci) ((unsigned char *) (pci)->bits) 74 #define GLYPHWIDTHBYTESPADDED(pci) (GLYPHWIDTHBYTES(pci)) 79 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+1) & ~0x1) 84 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+3) & ~0x3) 89 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci) [all...] |
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.7.7/ |
H A D | dixfontstr.h | 51 #define FONTGLYPHBITS(base,pci) ((unsigned char *) (pci)->bits) 74 #define GLYPHWIDTHBYTESPADDED(pci) (GLYPHWIDTHBYTES(pci)) 79 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+1) & ~0x1) 84 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+3) & ~0x3) 89 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci) [all...] |
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.8.0/ |
H A D | dixfontstr.h | 51 #define FONTGLYPHBITS(base,pci) ((unsigned char *) (pci)->bits) 74 #define GLYPHWIDTHBYTESPADDED(pci) (GLYPHWIDTHBYTES(pci)) 79 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+1) & ~0x1) 84 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+3) & ~0x3) 89 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci) [all...] |
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.9.0/ |
H A D | dixfontstr.h | 51 #define FONTGLYPHBITS(base,pci) ((unsigned char *) (pci)->bits) 74 #define GLYPHWIDTHBYTESPADDED(pci) (GLYPHWIDTHBYTES(pci)) 79 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+1) & ~0x1) 84 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+3) & ~0x3) 89 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci) [all...] |
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.10.0/ |
H A D | dixfontstr.h | 51 #define FONTGLYPHBITS(base,pci) ((unsigned char *) (pci)->bits) 74 #define GLYPHWIDTHBYTESPADDED(pci) (GLYPHWIDTHBYTES(pci)) 79 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+1) & ~0x1) 84 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+3) & ~0x3) 89 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci) [all...] |
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.11.0/ |
H A D | dixfontstr.h | 51 #define FONTGLYPHBITS(base,pci) ((unsigned char *) (pci)->bits) 74 #define GLYPHWIDTHBYTESPADDED(pci) (GLYPHWIDTHBYTES(pci)) 79 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+1) & ~0x1) 84 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+3) & ~0x3) 89 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci) [all...] |
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.12.0/ |
H A D | dixfontstr.h | 51 #define FONTGLYPHBITS(base,pci) ((unsigned char *) (pci)->bits) 74 #define GLYPHWIDTHBYTESPADDED(pci) (GLYPHWIDTHBYTES(pci)) 79 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+1) & ~0x1) 84 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci)+3) & ~0x3) 89 #define GLYPHWIDTHBYTESPADDED(pci) ((GLYPHWIDTHBYTES(pci) [all...] |