Marcel Moolenaar
875f70dba4
Revert the introduction of iobase in struct uart_bas. Both the SAB82532
...
and the Z8530 drivers used the I/O address as a quick and dirty way to
determine which channel they operated on, but formalizing this by
introducing iobase is not a solution. How for example would a driver
know which channel it controls for a multi-channel UART that only has a
single I/O range?
Instead, add an explicit field, called chan, to struct uart_bas that
holds the channel within a device, or 0 otherwise. The chan field is
initialized both by the system device probing (i.e. a system console)
or it is passed down to uart_bus_probe() by any of the bus front-ends.
As such, it impacts all platforms and bus drivers and makes it a rather
large commit.
Remove the use of iobase in uart_cpu_eqres() for pc98. It is expected
that platforms have the capability to compare tag and handle pairs for
equality; as to determine whether two pairs access the same device or
not. The use of iobase for pc98 makes it impossible to formalize this
and turn it into a real newbus function later. This commit reverts
uart_cpu_eqres() for pc98 to an unimplemented function. It has to be
reimplemented using only the tag and handle fields in struct uart_bas.
Rewrite the SAB82532 and Z8530 drivers to use the chan field in struct
uart_bas. Remove the IS_CHANNEL_A and IS_CHANNEL_B macros. We don't
need to abstract anything anymore.
Discussed with: nyan
Tested on: i386, ia64, sparc64
2003-09-26 05:14:56 +00:00
..
2003-09-16 16:07:15 +00:00
2003-09-26 04:32:40 +00:00
2003-09-05 11:05:41 +00:00
2003-09-02 17:30:40 +00:00
2003-09-17 02:58:17 +00:00
2003-08-24 17:55:58 +00:00
2003-07-30 20:09:22 +00:00
2003-08-24 17:55:58 +00:00
2003-09-25 23:36:41 +00:00
2003-08-22 05:54:52 +00:00
2003-09-02 17:30:40 +00:00
2003-09-02 17:30:40 +00:00
2003-08-24 17:55:58 +00:00
2003-09-02 17:30:40 +00:00
2003-09-24 18:40:10 +00:00
2003-09-15 22:34:46 +00:00
2003-08-24 17:55:58 +00:00
2003-09-05 11:09:26 +00:00
2003-09-09 18:21:17 +00:00
2003-09-23 19:54:32 +00:00
2003-09-02 17:30:40 +00:00
2003-09-02 17:30:40 +00:00
2003-09-02 17:30:40 +00:00
2003-09-08 16:45:33 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-06-11 06:34:30 +00:00
2003-09-16 05:01:27 +00:00
2003-08-22 07:20:27 +00:00
2003-08-24 17:55:58 +00:00
2003-08-15 14:55:50 +00:00
2003-08-24 17:55:58 +00:00
2003-09-02 17:30:40 +00:00
2003-09-09 00:24:31 +00:00
2003-09-20 18:03:07 +00:00
2003-08-24 17:55:58 +00:00
2003-09-23 00:18:25 +00:00
2003-08-24 17:55:58 +00:00
2003-08-30 08:10:58 +00:00
2003-08-24 17:55:58 +00:00
2003-09-24 22:13:25 +00:00
2003-08-24 20:18:11 +00:00
2003-08-24 17:55:58 +00:00
2003-09-17 07:40:00 +00:00
2003-08-24 17:55:58 +00:00
2003-09-25 09:27:05 +00:00
2003-09-05 22:37:31 +00:00
2003-09-02 20:24:42 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-09-02 17:30:40 +00:00
2003-09-02 17:30:40 +00:00
2003-08-24 17:55:58 +00:00
2003-09-02 17:30:40 +00:00
2003-09-02 20:24:42 +00:00
2003-09-16 14:21:17 +00:00
2003-08-31 19:23:00 +00:00
2003-09-02 17:30:40 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-09-02 17:30:40 +00:00
2003-09-22 04:59:07 +00:00
2003-09-15 06:41:33 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-09-02 17:30:40 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-07 15:04:27 +00:00
2003-09-20 10:53:08 +00:00
2003-08-24 17:55:58 +00:00
2003-09-02 08:30:31 +00:00
2003-09-02 17:30:40 +00:00
2003-09-02 17:30:40 +00:00
2003-06-02 16:32:55 +00:00
2003-09-02 17:30:40 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 05:42:49 +00:00
2003-08-24 17:55:58 +00:00
2003-09-22 05:27:33 +00:00
2003-08-22 08:49:56 +00:00
2003-06-20 07:22:54 +00:00
2003-09-17 08:32:44 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-01 05:02:55 +00:00
2003-09-08 06:28:50 +00:00
2003-09-26 04:44:55 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-07 15:04:27 +00:00
2003-09-20 21:18:27 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 18:03:45 +00:00
2003-08-22 07:08:17 +00:00
2003-09-02 17:30:40 +00:00
2003-09-02 17:30:40 +00:00
2003-08-24 18:03:45 +00:00
2003-08-22 07:20:27 +00:00
2003-08-24 18:03:45 +00:00
2003-09-18 07:46:40 +00:00
2003-09-20 15:49:22 +00:00
2003-09-06 13:58:06 +00:00
2003-08-24 18:03:45 +00:00
2003-08-24 18:03:45 +00:00
2003-08-24 18:03:45 +00:00
2003-09-17 01:09:10 +00:00
2003-06-02 16:32:55 +00:00
2003-08-24 18:17:24 +00:00
2003-09-02 17:30:40 +00:00
2003-08-24 18:17:24 +00:00
2003-09-02 17:30:40 +00:00
2003-08-25 21:32:00 +00:00
2003-09-02 17:30:40 +00:00
2003-08-24 17:55:58 +00:00
2003-08-22 07:20:27 +00:00
2003-09-02 17:30:40 +00:00
2003-08-22 07:08:17 +00:00
2003-09-02 17:30:40 +00:00
2003-08-24 17:55:58 +00:00
2003-09-26 05:14:56 +00:00
2003-08-24 17:55:58 +00:00
2003-09-24 02:02:41 +00:00
2003-07-30 08:35:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-22 07:20:27 +00:00
2003-09-02 17:30:40 +00:00
2003-08-24 17:55:58 +00:00
2003-09-22 05:33:22 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00