diff options
| -rw-r--r-- | drivers/char/rocket.c | 11 | ||||
| -rw-r--r-- | drivers/char/rocket_int.h | 18 |
2 files changed, 2 insertions, 27 deletions
diff --git a/drivers/char/rocket.c b/drivers/char/rocket.c index ffb34c43a1c2..68c289fe2dc2 100644 --- a/drivers/char/rocket.c +++ b/drivers/char/rocket.c | |||
| @@ -40,12 +40,6 @@ | |||
| 40 | */ | 40 | */ |
| 41 | 41 | ||
| 42 | /****** Defines ******/ | 42 | /****** Defines ******/ |
| 43 | #ifdef PCI_NUM_RESOURCES | ||
| 44 | #define PCI_BASE_ADDRESS(dev, r) ((dev)->resource[r].start) | ||
| 45 | #else | ||
| 46 | #define PCI_BASE_ADDRESS(dev, r) ((dev)->base_address[r]) | ||
| 47 | #endif | ||
| 48 | |||
| 49 | #define ROCKET_PARANOIA_CHECK | 43 | #define ROCKET_PARANOIA_CHECK |
| 50 | #define ROCKET_DISABLE_SIMUSAGE | 44 | #define ROCKET_DISABLE_SIMUSAGE |
| 51 | 45 | ||
| @@ -981,7 +975,7 @@ static int rp_open(struct tty_struct *tty, struct file *filp) | |||
| 981 | CHANNEL_t *cp; | 975 | CHANNEL_t *cp; |
| 982 | unsigned long page; | 976 | unsigned long page; |
| 983 | 977 | ||
| 984 | line = TTY_GET_LINE(tty); | 978 | line = tty->index; |
| 985 | if ((line < 0) || (line >= MAX_RP_PORTS) || ((info = rp_table[line]) == NULL)) | 979 | if ((line < 0) || (line >= MAX_RP_PORTS) || ((info = rp_table[line]) == NULL)) |
| 986 | return -ENXIO; | 980 | return -ENXIO; |
| 987 | 981 | ||
| @@ -1166,8 +1160,7 @@ static void rp_close(struct tty_struct *tty, struct file *filp) | |||
| 1166 | if (C_HUPCL(tty)) | 1160 | if (C_HUPCL(tty)) |
| 1167 | sClrDTR(cp); | 1161 | sClrDTR(cp); |
| 1168 | 1162 | ||
| 1169 | if (TTY_DRIVER_FLUSH_BUFFER_EXISTS(tty)) | 1163 | rp_flush_buffer(tty); |
| 1170 | TTY_DRIVER_FLUSH_BUFFER(tty); | ||
| 1171 | 1164 | ||
| 1172 | tty_ldisc_flush(tty); | 1165 | tty_ldisc_flush(tty); |
| 1173 | 1166 | ||
diff --git a/drivers/char/rocket_int.h b/drivers/char/rocket_int.h index c3aab522a456..f3a75791b811 100644 --- a/drivers/char/rocket_int.h +++ b/drivers/char/rocket_int.h | |||
| @@ -105,12 +105,6 @@ static inline unsigned short sInW(unsigned short port) | |||
| 105 | #define AIOPID_NULL -1 /* no AIOP or channel exists */ | 105 | #define AIOPID_NULL -1 /* no AIOP or channel exists */ |
| 106 | #define AIOPID_0001 0x0001 /* AIOP release 1 */ | 106 | #define AIOPID_0001 0x0001 /* AIOP release 1 */ |
| 107 | 107 | ||
| 108 | #define NULLDEV -1 /* identifies non-existant device */ | ||
| 109 | #define NULLCTL -1 /* identifies non-existant controller */ | ||
| 110 | #define NULLCTLPTR (CONTROLLER_T *)0 /* identifies non-existant controller */ | ||
| 111 | #define NULLAIOP -1 /* identifies non-existant AIOP */ | ||
| 112 | #define NULLCHAN -1 /* identifies non-existant channel */ | ||
| 113 | |||
| 114 | /************************************************************************ | 108 | /************************************************************************ |
| 115 | Global Register Offsets - Direct Access - Fixed values | 109 | Global Register Offsets - Direct Access - Fixed values |
| 116 | ************************************************************************/ | 110 | ************************************************************************/ |
| @@ -1187,9 +1181,6 @@ struct r_port { | |||
| 1187 | #define ROCKET_CLOSING 0x40000000 /* Serial port is closing */ | 1181 | #define ROCKET_CLOSING 0x40000000 /* Serial port is closing */ |
| 1188 | #define ROCKET_NORMAL_ACTIVE 0x20000000 /* Normal port is active */ | 1182 | #define ROCKET_NORMAL_ACTIVE 0x20000000 /* Normal port is active */ |
| 1189 | 1183 | ||
| 1190 | /* tty subtypes */ | ||
| 1191 | #define SERIAL_TYPE_NORMAL 1 | ||
| 1192 | |||
| 1193 | /* | 1184 | /* |
| 1194 | * Assigned major numbers for the Comtrol Rocketport | 1185 | * Assigned major numbers for the Comtrol Rocketport |
| 1195 | */ | 1186 | */ |
| @@ -1240,12 +1231,3 @@ struct r_port { | |||
| 1240 | /* Compact PCI device */ | 1231 | /* Compact PCI device */ |
| 1241 | #define PCI_DEVICE_ID_CRP16INTF 0x0903 /* Rocketport Compact PCI 16 port w/external I/F */ | 1232 | #define PCI_DEVICE_ID_CRP16INTF 0x0903 /* Rocketport Compact PCI 16 port w/external I/F */ |
| 1242 | 1233 | ||
| 1243 | #define TTY_GET_LINE(t) t->index | ||
| 1244 | #define TTY_DRIVER_MINOR_START(t) t->driver->minor_start | ||
| 1245 | #define TTY_DRIVER_SUBTYPE(t) t->driver->subtype | ||
| 1246 | #define TTY_DRIVER_NAME(t) t->driver->name | ||
| 1247 | #define TTY_DRIVER_NAME_BASE(t) t->driver->name_base | ||
| 1248 | #define TTY_DRIVER_FLUSH_BUFFER_EXISTS(t) t->driver->flush_buffer | ||
| 1249 | #define TTY_DRIVER_FLUSH_BUFFER(t) t->driver->flush_buffer(t) | ||
| 1250 | |||
| 1251 | |||
