mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
Make adjust_pci_device global, since many drivers call it.
This commit is contained in:
@@ -87,7 +87,7 @@ static int fill_pci_device ( struct pci_device *pci ) {
|
|||||||
* Set device to be a busmaster in case BIOS neglected to do so. Also
|
* Set device to be a busmaster in case BIOS neglected to do so. Also
|
||||||
* adjust PCI latency timer to a reasonable value, 32.
|
* adjust PCI latency timer to a reasonable value, 32.
|
||||||
*/
|
*/
|
||||||
static void adjust_pci_device ( struct pci_device *pci ) {
|
void adjust_pci_device ( struct pci_device *pci ) {
|
||||||
unsigned short new_command, pci_command;
|
unsigned short new_command, pci_command;
|
||||||
unsigned char pci_latency;
|
unsigned char pci_latency;
|
||||||
|
|
||||||
|
|||||||
@@ -325,6 +325,7 @@ extern unsigned long pci_bus_base ( struct pci_device *dev );
|
|||||||
extern struct pci_device * pci_device ( struct dev *dev );
|
extern struct pci_device * pci_device ( struct dev *dev );
|
||||||
extern int find_pci_device ( struct pci_device *pci,
|
extern int find_pci_device ( struct pci_device *pci,
|
||||||
struct pci_driver *driver );
|
struct pci_driver *driver );
|
||||||
|
extern void adjust_pci_device ( struct pci_device *pci );
|
||||||
extern unsigned long pci_bar_start ( struct pci_device *pci,
|
extern unsigned long pci_bar_start ( struct pci_device *pci,
|
||||||
unsigned int bar );
|
unsigned int bar );
|
||||||
extern unsigned long pci_bar_size ( struct pci_device *pci, unsigned int bar );
|
extern unsigned long pci_bar_size ( struct pci_device *pci, unsigned int bar );
|
||||||
|
|||||||
Reference in New Issue
Block a user