cvs commit: src/sys/dev/uart uart_cpu.h uart_cpu_alpha.c uart_cpu_amd64.c uart_cpu_i386.c uart_cpu_ia64.c uart_cpu_pc98.c uart_cpu_sparc64.c uart_dev_sab82532.c uart_dev_z8530.c

Takahashi Yoshihiro nyan at jp.FreeBSD.org
Thu Sep 11 04:47:30 PDT 2003


In article <200309072151.h87Lp38Y087640 at repoman.freebsd.org>
Marcel Moolenaar <marcel at FreeBSD.org> writes:

> marcel      2003/09/07 14:51:03 PDT
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/dev/uart         uart_cpu.h uart_cpu_alpha.c 
>                          uart_cpu_amd64.c uart_cpu_i386.c 
>                          uart_cpu_ia64.c uart_cpu_pc98.c 
>                          uart_cpu_sparc64.c uart_dev_sab82532.c 
>                          uart_dev_z8530.c 
>   Log:
>   Remove the assumption that a bus_space_handle_t is an I/O address
>   from the SAB82532 and the Z8530 hardware drivers by introducing
>   uart_cpu_busaddr(). The assumption is not true on pc98 where
>   bus_space_handle_t is a pointer to a structure.
>   The uart_cpu_busaddr() function will return the bus address
>   corresponding the tag and handle given to it by the BAS.

Don't access the inside of bus_handle directly in device driver.

BTW, bsh_base is not always the base address.

---
TAKAHASHI Yoshihiro <nyan at jp.FreeBSD.org>


More information about the cvs-src mailing list