diff options
author | nyan <nyan@FreeBSD.org> | 2003-09-23 09:25:38 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2003-09-23 09:25:38 +0000 |
commit | 5ff63b94e08d5106843d8df7bb1d213200cd203c (patch) | |
tree | 81235bda429271091a4b5cf67aef8cd0cb60242b /sys/dev/uart/uart_dev_z8530.c | |
parent | de10d50d42dd5a6ffddcbbc32f349f76080e03bc (diff) | |
download | FreeBSD-src-5ff63b94e08d5106843d8df7bb1d213200cd203c.zip FreeBSD-src-5ff63b94e08d5106843d8df7bb1d213200cd203c.tar.gz |
- Keep the base address in struct uart_bas for sab82532 and z8530 modules.
- Remove buggy uart_cpu_busaddr() function.
Diffstat (limited to 'sys/dev/uart/uart_dev_z8530.c')
-rw-r--r-- | sys/dev/uart/uart_dev_z8530.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/uart/uart_dev_z8530.c b/sys/dev/uart/uart_dev_z8530.c index eda35b8..30d8ed8 100644 --- a/sys/dev/uart/uart_dev_z8530.c +++ b/sys/dev/uart/uart_dev_z8530.c @@ -42,8 +42,8 @@ __FBSDID("$FreeBSD$"); #define DEFAULT_RCLK 307200 -#define IS_CHANNEL_A(bas) ((uart_cpu_busaddr(bas) & 7) != 0) -#define IS_CHANNEL_B(bas) ((uart_cpu_busaddr(bas) & 7) == 0) +#define IS_CHANNEL_A(bas) (((bas)->iobase & 7) != 0) +#define IS_CHANNEL_B(bas) (((bas)->iobase & 7) == 0) /* Multiplexed I/O. */ static __inline void |