FreeBSD Bugzilla – Attachment 37866 Details for
Bug 60107
[PATCH] update sample code in PCI driver chapter of arch handbook
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
archdoc.diff
archdoc.diff (text/plain), 1.71 KB, created by
Lukas Ertl
on 2003-12-10 08:00:43 UTC
(
hide
)
Description:
archdoc.diff
Filename:
MIME Type:
Creator:
Lukas Ertl
Created:
2003-12-10 08:00:43 UTC
Size:
1.71 KB
patch
obsolete
>Index: en_US.ISO8859-1/books/arch-handbook/pci/chapter.sgml >=================================================================== >RCS file: /usr/local/bsdcvs/doc/en_US.ISO8859-1/books/arch-handbook/pci/chapter.sgml,v >retrieving revision 1.14 >diff -u -r1.14 chapter.sgml >--- en_US.ISO8859-1/books/arch-handbook/pci/chapter.sgml 5 Nov 2003 10:50:50 -0000 1.14 >+++ en_US.ISO8859-1/books/arch-handbook/pci/chapter.sgml 10 Dec 2003 07:45:43 -0000 >@@ -25,18 +25,22 @@ > > #define MIN(a,b) (((a) < (b)) ? (a) : (b)) > >-#include <sys/types.h> >+#include <sys/param.h> /* defines used in kernel.h */ > #include <sys/module.h> > #include <sys/systm.h> /* uprintf */ > #include <sys/errno.h> >-#include <sys/param.h> /* defines used in kernel.h */ > #include <sys/kernel.h> /* types used in module initialization */ > #include <sys/conf.h> /* cdevsw struct */ > #include <sys/uio.h> /* uio struct */ > #include <sys/malloc.h> > #include <sys/bus.h> /* structs, prototypes for pci bus stuff */ > >-#include <pci/pcivar.h> /* For get_pci macros! */ >+#include <machine/bus.h> >+#include <sys/rman.h> >+#include <machine/resource.h> >+ >+#include <dev/pci/pcivar.h> /* For get_pci macros! */ >+#include <dev/pci/pcireg.h> > > /* Function prototypes */ > d_open_t mypci_open; >@@ -61,7 +65,7 @@ > open/close/read/write at this point */ > > int >-mypci_open(dev_t dev, int oflags, int devtype, struct proc *p) >+mypci_open(dev_t dev, int oflags, int devtype, struct thread *td) > { > int err = 0; > >@@ -70,7 +74,7 @@ > } > > int >-mypci_close(dev_t dev, int fflag, int devtype, struct proc *p) >+mypci_close(dev_t dev, int fflag, int devtype, struct thread *td) > { > int err=0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 60107
: 37866