Clean up includes including a style(9) fix and replace proc pointers with
thread pointers to catch up to 5.x. PR: docs/60107 Submitted by: Lukas Ertl <l.ertl@univie.ac.at>
This commit is contained in:
parent
7c4c8612d1
commit
96ffa091d2
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=19410
1 changed files with 9 additions and 5 deletions
|
@ -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>
|
||||
#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 @@ static dev_t sdev;
|
|||
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 @@ mypci_open(dev_t dev, int oflags, int devtype, struct proc *p)
|
|||
}
|
||||
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue