Skeleton driver completed.
This commit is contained in:
@@ -58,6 +58,10 @@ extern int strcmp(char *s1, char *s2);
|
||||
# include "hx8357.h"
|
||||
#endif
|
||||
|
||||
#ifdef SKEL_ENABLED
|
||||
# include "skel.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Null routine; placed in insignificant entries
|
||||
* in the bdevsw and cdevsw tables.
|
||||
@@ -82,7 +86,6 @@ int noioctl (dev, cmd, data, flag)
|
||||
int flag;
|
||||
{
|
||||
return EIO;
|
||||
;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -257,6 +260,14 @@ const struct cdevsw cdevsw[] = {
|
||||
},
|
||||
#endif
|
||||
|
||||
#ifdef SKEL_ENABLED
|
||||
{
|
||||
skeldev_open, skeldev_close, skeldev_read, skeldev_write,
|
||||
skeldev_ioctl, nulldev, 0, seltrue,
|
||||
nostrategy, 0, 0, skeldevs
|
||||
},
|
||||
#endif
|
||||
|
||||
/*
|
||||
* End the list with a blank entry
|
||||
*/
|
||||
|
||||
@@ -21,5 +21,6 @@ device sd0 port=2 cs=4 mhz=10
|
||||
device gpio
|
||||
device spi
|
||||
device adc
|
||||
#device skel
|
||||
|
||||
device foreignbootloader
|
||||
|
||||
Reference in New Issue
Block a user