View | Details | Raw Unified | Return to bug 60107
Collapse All | Expand All

(-)en_US.ISO8859-1/books/arch-handbook/pci/chapter.sgml (-5 / +9 lines)
Lines 25-42 Link Here
25
25
26
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
26
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
27
27
28
#include &lt;sys/types.h&gt;
28
#include &lt;sys/param.h&gt;  /* defines used in kernel.h */
29
#include &lt;sys/module.h&gt;
29
#include &lt;sys/module.h&gt;
30
#include &lt;sys/systm.h&gt;  /* uprintf */ 
30
#include &lt;sys/systm.h&gt;  /* uprintf */ 
31
#include &lt;sys/errno.h&gt;
31
#include &lt;sys/errno.h&gt;
32
#include &lt;sys/param.h&gt;  /* defines used in kernel.h */
33
#include &lt;sys/kernel.h&gt; /* types used in module initialization */
32
#include &lt;sys/kernel.h&gt; /* types used in module initialization */
34
#include &lt;sys/conf.h&gt;   /* cdevsw struct */
33
#include &lt;sys/conf.h&gt;   /* cdevsw struct */
35
#include &lt;sys/uio.h&gt;    /* uio struct */
34
#include &lt;sys/uio.h&gt;    /* uio struct */
36
#include &lt;sys/malloc.h&gt;
35
#include &lt;sys/malloc.h&gt;
37
#include &lt;sys/bus.h&gt;	/* structs, prototypes for pci bus stuff */
36
#include &lt;sys/bus.h&gt;	/* structs, prototypes for pci bus stuff */
38
37
39
#include &lt;pci/pcivar.h&gt; /* For get_pci macros! */
38
#include &lt;machine/bus.h&gt;
39
#include &lt;sys/rman.h&gt;
40
#include &lt;machine/resource.h&gt;
41
42
#include &lt;dev/pci/pcivar.h&gt; /* For get_pci macros! */
43
#include &lt;dev/pci/pcireg.h&gt;
40
44
41
/* Function prototypes */
45
/* Function prototypes */
42
d_open_t      mypci_open;
46
d_open_t      mypci_open;
Lines 61-67 Link Here
61
   open/close/read/write at this point */
65
   open/close/read/write at this point */
62
66
63
int 
67
int 
64
mypci_open(dev_t dev, int oflags, int devtype, struct proc *p)
68
mypci_open(dev_t dev, int oflags, int devtype, struct thread *td)
65
{
69
{
66
  int err = 0;
70
  int err = 0;
67
71
Lines 70-76 Link Here
70
}
74
}
71
75
72
int 
76
int 
73
mypci_close(dev_t dev, int fflag, int devtype, struct proc *p)
77
mypci_close(dev_t dev, int fflag, int devtype, struct thread *td)
74
{
78
{
75
  int err=0;
79
  int err=0;

Return to bug 60107