mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 00:02:44 +00:00
Change #ifdef FreeBSD' to
#ifdef __FreeBSD__'.
Submitted by: H. Nokubi <h-nokubi@nmit.mt.nec.co.jp>
This commit is contained in:
parent
c4d420eee3
commit
242b8c5441
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23826
@ -209,7 +209,7 @@ bs_lc_smit_xfer(ti, direction)
|
||||
break;
|
||||
|
||||
count = (datalen > LC_FSZ ? LC_FSZ : datalen);
|
||||
#ifdef FreeBSD
|
||||
#ifdef __FreeBSD__
|
||||
memcopy(ti->sm_vaddr, data, count);
|
||||
#else /* NetBSD */
|
||||
bus_mem_read_multi_4(bsc->sc_bc, bsc->sc_memh, 0, data, count >> 2);
|
||||
@ -229,7 +229,7 @@ bs_lc_smit_xfer(ti, direction)
|
||||
break;
|
||||
|
||||
count = (datalen > LC_SFSZ ? LC_SFSZ : datalen);
|
||||
#ifdef FreeBSD
|
||||
#ifdef __FreeBSD__
|
||||
memcopy(data, ti->sm_vaddr, count);
|
||||
#else /* NetBSD */
|
||||
bus_mem_write_multi_4(bsc->sc_bc, bsc->sc_memh, 0, data, count >> 2);
|
||||
@ -241,7 +241,7 @@ bs_lc_smit_xfer(ti, direction)
|
||||
break;
|
||||
|
||||
count = (datalen > LC_REST ? LC_REST : datalen);
|
||||
#ifdef FreeBSD
|
||||
#ifdef __FreeBSD__
|
||||
memcopy(data, ti->sm_vaddr + LC_SFSZ, count);
|
||||
#else /* NetBSD */
|
||||
bus_mem_write_multi_4(bsc->sc_bc, bsc->sc_memh, LC_SFSZ, data, count >> 2);
|
||||
|
Loading…
Reference in New Issue
Block a user