blob: 2542614b5d5ee275b503ca14ff076222f5a3660f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
pci_attr_r8.c
*/
#include "pci.h"
#include "syslib.h"
#include <minix/sysutil.h>
/*===========================================================================*
* pci_attr_r8 *
*===========================================================================*/
u8_t pci_attr_r8(devind, port)
int devind;
int port;
{
int r;
message m;
m.m_type= BUSC_PCI_ATTR_R8;
m.m2_i1= devind;
m.m2_i2= port;
r= ipc_sendrec(pci_procnr, &m);
if (r != 0)
panic("pci_attr_r8: can't talk to PCI: %d", r);
if (m.m_type != 0)
panic("pci_attr_r8: got bad reply from PCI: %d", m.m_type);
return m.m2_l1;
}
|