diff options
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 |