source: trunk/minix/lib/syslib/pci_rescan_bus.c@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 593 bytes
RevLine 
[9]1/*
2pci_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 *===========================================================================*/
12PUBLIC void pci_rescan_bus(busnr)
13u8_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.