source: trunk/minix/lib/syslib/pci_reserve.c@ 22

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

Minix 3.1.2a

File size: 572 bytes
RevLine 
[9]1/*
2pci_reserve.c
3*/
4
5#include "pci.h"
6#include "syslib.h"
7#include <minix/sysutil.h>
8
9/*===========================================================================*
10 * pci_reserve *
11 *===========================================================================*/
12PUBLIC void pci_reserve(devind)
13int 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.