Rev | Line | |
---|
[9] | 1 | /*
|
---|
| 2 | pci_rescan_bus.c
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | #include "pci.h"
|
---|
| 6 | #include "syslib.h"
|
---|
| 7 | #include <minix/sysutil.h>
|
---|
| 8 |
|
---|
| 9 | /*===========================================================================*
|
---|
| 10 | * pci_rescan_bus *
|
---|
| 11 | *===========================================================================*/
|
---|
| 12 | PUBLIC void pci_rescan_bus(busnr)
|
---|
| 13 | u8_t busnr;
|
---|
| 14 | {
|
---|
| 15 | int r;
|
---|
| 16 | message m;
|
---|
| 17 |
|
---|
| 18 | m.m_type= BUSC_PCI_RESCAN;
|
---|
| 19 | m.m1_i1= busnr;
|
---|
| 20 |
|
---|
| 21 | r= sendrec(pci_procnr, &m);
|
---|
| 22 | if (r != 0)
|
---|
| 23 | panic("pci", "pci_rescan_bus: can't talk to PCI", r);
|
---|
| 24 |
|
---|
| 25 | if (m.m_type != 0)
|
---|
| 26 | {
|
---|
| 27 | panic("pci", "pci_rescan_bus: got bad reply from PCI",
|
---|
| 28 | m.m_type);
|
---|
| 29 | }
|
---|
| 30 | }
|
---|
| 31 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.