mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 01:22:37 +03:00
Add device description fields to struct device.
This commit is contained in:
@@ -72,7 +72,7 @@ int pcibios_read ( struct pci_device *pci, uint32_t command, uint32_t *value ){
|
||||
: "=a" ( status ), "=b" ( discard_b ),
|
||||
"=c" ( *value ), "=D" ( discard_D )
|
||||
: "a" ( command >> 16 ), "D" ( command ),
|
||||
"b" ( ( pci->bus << 8 ) | pci->devfn )
|
||||
"b" ( PCI_BUSDEVFN ( pci->bus, pci->devfn ) )
|
||||
: "edx" );
|
||||
|
||||
return ( ( status >> 8 ) & 0xff );
|
||||
@@ -98,7 +98,7 @@ int pcibios_write ( struct pci_device *pci, uint32_t command, uint32_t value ){
|
||||
: "=a" ( status ), "=b" ( discard_b ),
|
||||
"=c" ( discard_c ), "=D" ( discard_D )
|
||||
: "a" ( command >> 16 ), "D" ( command ),
|
||||
"b" ( ( pci->bus << 8 ) | pci->devfn ),
|
||||
"b" ( PCI_BUSDEVFN ( pci->bus, pci->devfn ) ),
|
||||
"c" ( value )
|
||||
: "edx" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user