From 5ff63b94e08d5106843d8df7bb1d213200cd203c Mon Sep 17 00:00:00 2001 From: nyan Date: Tue, 23 Sep 2003 09:25:38 +0000 Subject: - Keep the base address in struct uart_bas for sab82532 and z8530 modules. - Remove buggy uart_cpu_busaddr() function. --- sys/dev/uart/uart_dev_sab82532.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/uart/uart_dev_sab82532.c') diff --git a/sys/dev/uart/uart_dev_sab82532.c b/sys/dev/uart/uart_dev_sab82532.c index ec1c9f5..b9e781f 100644 --- a/sys/dev/uart/uart_dev_sab82532.c +++ b/sys/dev/uart/uart_dev_sab82532.c @@ -42,8 +42,8 @@ __FBSDID("$FreeBSD$"); #define DEFAULT_RCLK 29491200 -#define IS_CHANNEL_A(bas) ((uart_cpu_busaddr(bas) & 0x40) == 0x00) -#define IS_CHANNEL_B(bas) ((uart_cpu_busaddr(bas) & 0x40) == 0x40) +#define IS_CHANNEL_A(bas) (((bas)->iobase & 0x40) == 0x00) +#define IS_CHANNEL_B(bas) (((bas)->iobase & 0x40) == 0x40) /* * NOTE: To allow us to read the baudrate divisor from the chip, we -- cgit v1.1