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