summaryrefslogtreecommitdiffstats
path: root/sys/dev/firewire
Commit message (Collapse)AuthorAgeFilesLines
* Use the PCIR_BAR() macro rather than a magic number to specify the BARjhb2004-02-121-1/+1
| | | | for controller memory.
* Add NEC uPD72873.simokawa2004-01-302-0/+5
| | | | Submitted by: Christian Laursen <xi@borderworlds.dk>
* Use device_identify and bus_add_child methods to add a firewiresimokawa2004-01-303-30/+57
| | | | | bus on fwohci. This should fix attach failure caused by a race between firewire and fwochi initialization for the kernel module.
* * fwohci_pci.csimokawa2004-01-232-10/+17
| | | | | | | | Improve error message for attach failure. * sbp_targ.c - Add speed in struct sbp_targ_login. - Remove unnecessary htonl().
* Add missing free() in exception handlers.simokawa2004-01-222-2/+3
| | | | Reported by: Stanford Metacompilation research group
* Sync type of linkspeed with firewire.c.simokawa2004-01-111-1/+1
|
* * firewiresimokawa2004-01-083-18/+34
| | | | | | | | | | Add tcode_str[] and improve debug message. * sbp If max_speed is negative, use the maximum speed which the ohci chip supports. The default max_speed is -1. * if_fwe If tx_speed is negative, use the maximum speed which the ohci chip supports. The default tx_speed is 2.
* Remove __P().simokawa2004-01-066-126/+126
|
* Fix register mis-alignment introduced in rev1.12.simokawa2004-01-061-33/+34
|
* MFp4:simokawa2004-01-056-29/+27
| | | | | | | | | | | * firewire - Remove pending list. - Ignore timeout for the FWXF_START state. - Define M_FWMEM for debugging. - Comment out DELAY() in fw_asybusy(). - Improve debugging messages * sbp - Freeze simq while bus reset.
* Catch a few places where NULL (pointer) was used where 0 (integer) waspeter2003-12-231-4/+4
| | | | expected.
* Fix panic.simokawa2003-12-131-6/+2
| | | | | - Don't call sbp_targ_status_FIFO() twice for LOGIN error. - Don't access login if it's NULL.
* MFp4:simokawa2003-12-112-129/+310
| | | | | | - Introduce sbp_targ_login instead of sbp_targ_istate. - Implement reconnection and logout. - Freeze simq while bus reset.
* Sometimes cardbus attachments don't attach, so while we track downimp2003-11-281-0/+1
| | | | | | | | this problem put these lines back in. While they should be unnecessary, they appear to be sometimes necessary. Reviewed in concept: dfr Approved by: re (scottl@)
* Add tunables.simokawa2003-11-131-4/+10
|
* Improve debug message.simokawa2003-11-122-9/+9
|
* - Reserve a ocb for management ORB.simokawa2003-11-121-2/+6
| | | | - Requeue XPT_SCSI_IO if ocb is short.
* Oops, fix typo in my name.simokawa2003-11-122-4/+4
|
* Reduce debug message.simokawa2003-11-101-0/+2
|
* * Improve sbp device probe in boot process.simokawa2003-11-101-15/+50
| | | | | | | | | - Notify BUS RESET to CAM in sbp_attach(). - Use last bus reset time to determine login delay. Tested by: imura * Add some sysctl MIB and tunables.
* - Implement selwakeuppri() which allows raising the priority of atanimura2003-11-091-1/+1
| | | | | | | | | | | | | thread being waken up. The thread waken up can run at a priority as high as after tsleep(). - Replace selwakeup()s with selwakeuppri()s and pass appropriate priorities. - Add cv_broadcastpri() which raises the priority of the broadcast threads. Used by selwakeuppri() if collision occurs. Not objected in: -arch, -current
* Allow shared open of /dev/fwmem* for read-only.simokawa2003-11-071-16/+42
|
* Respect a return code of fwmem_open().simokawa2003-11-071-3/+3
|
* Increase FWMAXQUEUE up to 128.simokawa2003-11-071-1/+1
|
* Add compatibility for 4-stable.simokawa2003-11-071-0/+5
| | | | Submitted by: imura
* Use if_printf() for FWEDEBUG.simokawa2003-11-061-7/+7
|
* - Change driver name to fix if_xname breakage in the previous revision.simokawa2003-11-031-3/+3
| | | | | | - Don't call device_get_unit() twice. Tested by: nork
* Remove explicit cardbus attachments from drivers where this is identicaldfr2003-11-031-1/+0
| | | | | | | to the pci attachment. Cardbus is a derived class of pci so all pci drivers are automatically available for matching against cardbus devices. Reviewed by: imp
* Replace the if_name and if_unit members of struct ifnet with new membersbrooks2003-10-311-6/+5
| | | | | | | | | | | | | if_xname, if_dname, and if_dunit. if_xname is the name of the interface and if_dname/unit are the driver name and instance. This change paves the way for interface renaming and enhanced pseudo device creation and configuration symantics. Approved By: re (in principle) Reviewed By: njl, imp Tested On: i386, amd64, sparc64 Obtained From: NetBSD (if_xname)
* Add a new sysctl MIB to control exclusive login.simokawa2003-10-311-1/+6
|
* Reject too large OHCI version number.simokawa2003-10-311-4/+5
| | | | | Invalid OHCI version indicates OHCI registers are not mapped correctly in PCI or CardBus layer.
* Add a compatibility macro for FreeBSD-4.simokawa2003-10-311-0/+1
|
* Fix fwmem_strategy() race in 4-stable.simokawa2003-10-252-1/+6
|
* Move validity check of 'xfer->fc != NULL' to right place.simokawa2003-10-251-4/+4
|
* Fix for FW_ASYREQ.simokawa2003-10-241-39/+36
| | | | | | - set send.pay_len correctly. - copy response only if needed. - remove unnecessary 'err = 0'.
* Don't check timeout just after booted.simokawa2003-10-241-3/+15
| | | | | Some transactions could be considered wrongly to be timeout bacause interrupts are disabled during boot process.
* Reduce debug messages.simokawa2003-10-231-2/+4
|
* Add SBP-II target mode driver.simokawa2003-10-181-0/+1550
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Though this is still incomplete and has some missing features such as exclusive login and event notification, it may be enough for someone who wants to play with it. This driver is supposed to work with firewire(4), targ(4) of CAM(4) and scsi_target(8) which can be found in /usr/share/example/scsi_target. This driver doesn't require sbp(4) which implements initiator mode. Sample configuration: Kernel: (you can use modules as well) device firewire device scbus device targ device sbp_targ After reboot: # mdconfig -a -t malloc -s 10m md0 # scsi_target 0:0:0 /dev/md0 (Assuming sbp_targ0 on scbus0) You should find the 10MB HDD on FreeBSD/MacOS X/WinXP or whatever connected to the target using FireWire. Manpage is not finished yet.
* - Call sbp_reset_start() for mgm timeout.simokawa2003-10-181-166/+316
| | | | | | | - Change type of target->luns to allocate an array of LUNs dynamically. This allows targets to change their number of LUNs after each bus reset. - Serialize ORB POINTER command for each LUN. - Improve debug messages.
* - Introduce hw.firewire.hold_count sysctl MIB by popular demand.simokawa2003-10-061-18/+24
| | | | | | | This MIB specifies how many bus resets should be observed before the lost device entry is removed. The default value is 3. You can set this value to 0 if you want a SBP device to be detached from CAM layer as soon as the device is physically detached like USB.
* - Implement sbp_poll() to enable kernel dump on SBP-2 device.simokawa2003-10-061-1/+9
|
* - Fix timeout for unodered excution.simokawa2003-10-061-12/+32
| | | | | | | | | | | In unodered excution case, we cannot detect link-chain end only by prev == NULL if lastest ORB is executed earlyer than the former ORBs. Use ORB_LINK_DEAD flag for this case. - Don't reset agent for management ORB. - Improve debug messages. Spotted by: sbp target mode
* Remove wrong usage of BUF_REFCNT().simokawa2003-10-021-1/+0
| | | | Spotted by: phk
* MFp4: Change struct fw_xfer to reduce memory copy in fwmem_*() functions.simokawa2003-10-0212-656/+803
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And many changes. * all - Major change of struct fw_xfer. o {send,recv}.buf is splitted into hdr and payload. o Remove unnecessary fields. o spd is moved under send and recv. - Remove unnecessary 'volatile' keyword. - Add definition of rtcode and extcode. * firewire.c - Ignore FWDEVINVAL devices in fw_noderesolve_nodeid(). - Check the existance of the bind before call STAILQ_REMOVE(). - Fix bug in the fw_bindadd(). - Change element of struct fw_bind for simplicity. - Check rtcode of response packet. - Reduce split transaction timeout to 200 msec. (100msec is the default value in the spec.) - Set watchdog timer cycle to 10 Hz. - Set xfer->tv just before calling fw_get_tlabel(). * fwohci.c - Simplifies fwohci_get_plen(). * sbp.c - Fix byte order of multibyte scsi_status informations. - Split sbp.c and sbp.h. - Unit number is not necessary for FIFO¤ address. - Reduce LOGIN_DELAY and SCAN_DELAY to 1 sec. - Add some constants defineded in SBP-2 spec. * fwmem.c - Introduce fwmem_strategy() and reduce memory copy.
* Fix a bug in fwdev_clone().simokawa2003-10-011-1/+1
| | | | Spotted by: grog
* Phy register map.simokawa2003-09-251-0/+168
|
* Fix byte order of multi-byte scsi_status information.simokawa2003-08-291-20/+11
|
* Use __FBSDID().obrien2003-08-243-5/+10
| | | | Also some minor style cleanups.
* Make this compiled on RELENG_4.simokawa2003-08-221-0/+5
|
* Comment out verbose debug messages.simokawa2003-08-222-0/+4
|
OpenPOWER on IntegriCloud