Changeset 99cac86 in buchla-68k for libcio/open.c
- Timestamp:
- 07/16/2017 11:27:12 AM (7 years ago)
- Branches:
- master
- Children:
- d60f436
- Parents:
- ea232f9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/open.c
rea232f9 r99cac86 8 8 #include "ram.h" 9 9 10 static struct device condev = { 2, 2, 1, 0, _nopo 11 static struct device filedev = { 1, 1, 0, 1, _fileop };10 static struct device condev = { 2, 2, 1, 0, _nopo, CON_DEV }; 11 static struct device filedev = { 1, 1, 0, 1, _fileop, -1 }; 12 12 13 13 /* … … 19 19 static struct devtabl devtabl[] = { 20 20 21 { "con:", &condev , &devtabl[0], CON_DEV}, /* console device */22 { "CON:", &condev , &devtabl[1], CON_DEV},23 24 { 0, &filedev , NULL, -1} /* this MUST be the last entry */21 { "con:", &condev }, /* console device */ 22 { "CON:", &condev }, 23 24 { 0, &filedev } /* this MUST be the last entry */ 25 25 }; 26 26 … … 80 80 /* setup the channel table entries */ 81 81 82 chp->c_arg = dp->d_arg;82 chp->c_arg = (io_arg)(int32_t)dp->d_dev->d_kind; 83 83 chp->c_ioctl = dev->d_ioctl; 84 84 chp->c_seek = dev->d_seek;
Note:
See TracChangeset
for help on using the changeset viewer.