diff options
author | simokawa <simokawa@FreeBSD.org> | 2002-11-07 02:13:40 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2002-11-07 02:13:40 +0000 |
commit | 2d6271e925121cb79eabe7426b9fc41ae2b1a022 (patch) | |
tree | 94f7875ff451957dffb618e2bfa9d7fb6674954d /sys/dev/firewire/firewire.c | |
parent | b2a02ec1dcd205bfacf188ec2d9458afea64c103 (diff) | |
download | FreeBSD-src-2d6271e925121cb79eabe7426b9fc41ae2b1a022.zip FreeBSD-src-2d6271e925121cb79eabe7426b9fc41ae2b1a022.tar.gz |
- Fix printf warnings on 64bit plathome.
- Disable fw_vmaccess() because it's not used and unuseful 64bit plathome.
Diffstat (limited to 'sys/dev/firewire/firewire.c')
-rw-r--r-- | sys/dev/firewire/firewire.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/dev/firewire/firewire.c b/sys/dev/firewire/firewire.c index bdff903..9d7cadd 100644 --- a/sys/dev/firewire/firewire.c +++ b/sys/dev/firewire/firewire.c @@ -113,7 +113,9 @@ static void fw_bus_probe __P((struct firewire_comm *)); static void fw_bus_explore __P((struct firewire_comm *)); static void fw_bus_explore_callback __P((struct fw_xfer *)); static void fw_attach_dev __P((struct firewire_comm *)); +#ifdef FW_VMACCESS static void fw_vmaccess __P((struct fw_xfer *)); +#endif struct fw_xfer *asyreqq __P((struct firewire_comm *, u_int8_t, u_int8_t, u_int8_t, u_int32_t, u_int32_t, void (*)__P((struct fw_xfer *)))); @@ -1604,9 +1606,11 @@ void fw_init(fc) struct firewire_comm *fc; { int i; + struct csrdir *csrd; +#ifdef FW_VMACCESS struct fw_xfer *xfer; struct fw_bind *fwb; - struct csrdir *csrd; +#endif fc->max_asyretry = FW_MAXASYRTY; @@ -1709,6 +1713,7 @@ void fw_init(fc) #endif +#ifdef FW_VMACCESS xfer = fw_xfer_alloc(); if(xfer == NULL) return; @@ -1726,6 +1731,7 @@ void fw_init(fc) fwb->addrlen = 0xffffffff; fwb->xfer = xfer; fw_bindadd(fc, fwb); +#endif } /* * To lookup binded process from IEEE1394 address. @@ -3152,6 +3158,8 @@ void fw_try_bmr(void *arg) } return; } + +#ifdef FW_VMACCESS /* * Software implementation for physical memory block access. * XXX:Too slow, usef for debug purpose only. @@ -3226,6 +3234,8 @@ static void fw_vmaccess(struct fw_xfer *xfer){ /**/ return; } +#endif + /* * CRC16 check-sum for IEEE1394 register blocks. */ |