Skeleton driver completed.

This commit is contained in:
Serge Vakulenko
2015-02-05 19:08:53 -08:00
parent 9b9f6392dc
commit 29c75b3f71
2 changed files with 13 additions and 1 deletions

View File

@@ -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
*/

View File

@@ -21,5 +21,6 @@ device sd0 port=2 cs=4 mhz=10
device gpio
device spi
device adc
#device skel
device foreignbootloader