summaryrefslogtreecommitdiffstats
path: root/share/examples/drivers
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1997-12-30 03:23:13 +0000
committerjulian <julian@FreeBSD.org>1997-12-30 03:23:13 +0000
commit475bb0a6c5c9b6d9de27891bf966326d572df615 (patch)
tree9f6f0d19807549825a773bab268e70e8bf381f31 /share/examples/drivers
parentf0d05aed36b5eb215274b4d1821f8d0ffd9394ca (diff)
downloadFreeBSD-src-475bb0a6c5c9b6d9de27891bf966326d572df615.zip
FreeBSD-src-475bb0a6c5c9b6d9de27891bf966326d572df615.tar.gz
The example drivers should use 'poll' now that it has replaced select.
Diffstat (limited to 'share/examples/drivers')
-rwxr-xr-xshare/examples/drivers/make_device_driver.sh10
-rw-r--r--share/examples/drivers/make_pseudo_driver.sh10
2 files changed, 10 insertions, 10 deletions
diff --git a/share/examples/drivers/make_device_driver.sh b/share/examples/drivers/make_device_driver.sh
index e07338d..7d1776d 100755
--- a/share/examples/drivers/make_device_driver.sh
+++ b/share/examples/drivers/make_device_driver.sh
@@ -21,7 +21,7 @@ DONE
cat >${UPPER} <<DONE
# Configuration file for kernel type: ${UPPER}
ident ${UPPER}
-# \$Id:\$"
+# \$Id: make_device_driver.sh,v 1.1 1997/02/02 07:19:30 julian Exp $"
DONE
grep -v GENERIC < GENERIC >>${UPPER}
@@ -37,7 +37,7 @@ cat >../isa/${1}.c <<DONE
* Copyright ME
*
* ${1} driver
- * \$Id:\$
+ * \$Id: make_device_driver.sh,v 1.1 1997/02/02 07:19:30 julian Exp $
*/
@@ -64,7 +64,7 @@ static d_read_t ${1}read;
static d_write_t ${1}write;
static d_ioctl_t ${1}ioctl;
static d_mmap_t ${1}mmap;
-static d_select_t ${1}select;
+static d_poll_t ${1}poll;
static int ${1}probe (struct isa_device *);
static int ${1}attach (struct isa_device *);
/* void ${1}intr(int unit);*//* actually defined in ioconf.h (generated file) */
@@ -79,7 +79,7 @@ static struct cdevsw ${1}_cdevsw = {
nullstop,
nullreset,
nodevtotty,
- ${1}select,
+ ${1}poll,
${1}mmap,
NULL,
"${1}",
@@ -327,7 +327,7 @@ ${1}mmap(dev_t dev, int offset, int nprot)
}
static int
-${1}select(dev_t dev, int which, struct proc *p)
+${1}poll(dev_t dev, int which, struct proc *p)
{
int unit = UNIT (dev);
sc_p scp = sca[unit];
diff --git a/share/examples/drivers/make_pseudo_driver.sh b/share/examples/drivers/make_pseudo_driver.sh
index 72f9fc2..f6fc342 100644
--- a/share/examples/drivers/make_pseudo_driver.sh
+++ b/share/examples/drivers/make_pseudo_driver.sh
@@ -21,7 +21,7 @@ DONE
cat >${UPPER} <<DONE
# Configuration file for kernel type: ${UPPER}
ident ${UPPER}
-# \$Id:\$"
+# \$Id: make_pseudo_driver.sh,v 1.1 1997/02/02 07:19:30 julian Exp $"
DONE
grep -v GENERIC < GENERIC >>${UPPER}
@@ -37,7 +37,7 @@ cat >../../dev/${1}.c <<DONE
* Copyright ME
*
* ${1} driver
- * \$Id:\$
+ * \$Id: make_pseudo_driver.sh,v 1.1 1997/02/02 07:19:30 julian Exp $
*/
@@ -62,7 +62,7 @@ static d_read_t ${1}read;
static d_write_t ${1}write;
static d_ioctl_t ${1}ioctl;
static d_mmap_t ${1}mmap;
-static d_select_t ${1}select;
+static d_poll_t ${1}poll;
#define CDEV_MAJOR 20
static struct cdevsw ${1}_cdevsw = {
@@ -74,7 +74,7 @@ static struct cdevsw ${1}_cdevsw = {
nullstop,
nullreset,
nodevtotty,
- ${1}select,
+ ${1}poll,
${1}mmap,
NULL,
"${1}",
@@ -232,7 +232,7 @@ ${1}mmap(dev_t dev, int offset, int nprot)
}
static int
-${1}select(dev_t dev, int which, struct proc *p)
+${1}poll(dev_t dev, int which, struct proc *p)
{
int unit = UNIT (dev);
sc_p scp = sca[unit];
OpenPOWER on IntegriCloud