| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Notes:
svn path=/head/; revision=121381
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=121186
|
| |
|
|
|
|
|
|
|
|
| |
- 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.
Notes:
svn path=/head/; revision=121185
|
| |
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=120850
|
| |
|
|
| |
Notes:
svn path=/head/; revision=120847
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=120842
|
| |
|
|
|
|
|
| |
Spotted by: phk
Notes:
svn path=/head/; revision=120664
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=120660
|
| |
|
|
|
|
|
| |
Spotted by: grog
Notes:
svn path=/head/; revision=120624
|
| |
|
|
| |
Notes:
svn path=/head/; revision=120431
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119556
|
| |
|
|
|
|
|
| |
Also some minor style cleanups.
Notes:
svn path=/head/; revision=119418
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119290
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119289
|
| |
|
|
|
|
|
|
| |
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
Notes:
svn path=/head/; revision=119277
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119196
|
| |
|
|
|
|
|
|
|
| |
This fixes the if_fwe problem with 1394b chip.
PR and Tested by: nork
Notes:
svn path=/head/; revision=119155
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119120
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119119
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119118
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118820
|
| |
|
|
|
|
|
|
|
| |
- /dev/fw{,mem}X.Y represents the Y'th unit on the X'th bus.
- /dev/fw{,mem}X is an alias of fw{,mem}X.0 for compatibility.
- Clone devices.
Notes:
svn path=/head/; revision=118455
|
| |
|
|
|
|
|
|
|
|
|
| |
Tested by: wilko
- Detect memory mapping failure of registers by checking OHCI version.
Tested by: KONDOU, Kazuhiro <kazuhiro@alib.jp>
Notes:
svn path=/head/; revision=118416
|
| |
|
|
|
|
|
| |
(warning: `xferq' might be used uninitialized in this function)
Notes:
svn path=/head/; revision=118312
|
| |
|
|
|
|
|
|
| |
Allocate iso DMA channel dynamically. This allows us to have more
/dev/fw* than number of DMA channels for asyn. transactions and etc.
Notes:
svn path=/head/; revision=118293
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118291
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118289
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
receive 6 byte commands. Add a check for this flag to da(4) and cd(4) so
that they honor it. This is a quick workaround for many devices (especially
USB) that require da(4) quirks to operate. The more complete approach is
to finish the new transport code which will be aware of the SCSI version a
transport implements.
MFC after: 1 day
Notes:
svn path=/head/; revision=118105
|
| |
|
|
|
|
|
| |
anything' etc.
Notes:
svn path=/head/; revision=118039
|
| |
|
|
| |
Notes:
svn path=/head/; revision=117732
|
| |
|
|
| |
Notes:
svn path=/head/; revision=117716
|
| |
|
|
| |
Notes:
svn path=/head/; revision=117473
|
| |
|
|
|
|
|
|
|
| |
- Don't bump the generation if ROM has not changed and keep it
between 0x2 and 0xf.
- Refetch the ROM if CRC of the businfo block has changed.
Notes:
svn path=/head/; revision=117350
|
| |
|
|
| |
Notes:
svn path=/head/; revision=117228
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
However, they are presently necessary due to bigger bogusness in the
pci bus layer not doing the right thing on suspend/resume or on
initial device probe. This is exactly the sort of thing that the
BURN_BRIDGES option was invented for. Mark all of them as
BURN_BRIDGES. As soon as I have the powerstate stuff properly
integrated into the pci bus code, I intend to remove all these
workarounds.
Notes:
svn path=/head/; revision=117198
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add two new arguments to bus_dma_tag_create(): lockfunc and lockfuncarg.
Lockfunc allows a driver to provide a function for managing its locking
semantics while using busdma. At the moment, this is used for the
asynchronous busdma_swi and callback mechanism. Two lockfunc implementations
are provided: busdma_lock_mutex() performs standard mutex operations on the
mutex that is specified from lockfuncarg. dftl_lock() is a panic
implementation and is defaulted to when NULL, NULL are passed to
bus_dma_tag_create(). The only time that NULL, NULL should ever be used is
when the driver ensures that bus_dmamap_load() will not be deferred.
Drivers that do not provide their own locking can pass
busdma_lock_mutex,&Giant args in order to preserve the former behaviour.
sparc64 and powerpc do not provide real busdma_swi functions, so this is
largely a noop on those platforms. The busdma_swi on is64 is not properly
locked yet, so warnings will be emitted on this platform when busdma
callback deferrals happen.
If anyone gets panics or warnings from dflt_lock() being called, please
let me know right away.
Reviewed by: tmm, gibbs
Notes:
svn path=/head/; revision=117126
|
| |
|
|
| |
Notes:
svn path=/head/; revision=117104
|
| |
|
|
| |
Notes:
svn path=/head/; revision=117067
|
| |
|
|
|
|
|
|
|
|
|
| |
- Initialize fc->status to process bus reset correctly after resume.
- Initialize AT ring buffer pointer.
- Requeue stdma to stfree for active IR buffer.
- Stop DMA before suspend for safe.
- Set powerstate after resume.
Notes:
svn path=/head/; revision=116978
|
| |
|
|
|
|
|
| |
- Wait 2 cycles before starting the process for fast machines.
Notes:
svn path=/head/; revision=116897
|
| |
|
|
| |
Notes:
svn path=/head/; revision=116435
|
| |
|
|
| |
Notes:
svn path=/head/; revision=116433
|
| |
|
|
| |
Notes:
svn path=/head/; revision=116429
|
| |
|
|
|
|
|
| |
- Improve probe message for S800 chips.
Notes:
svn path=/head/; revision=116376
|
| |
|
|
|
|
|
| |
Bytewap Configuration ROM image.
Notes:
svn path=/head/; revision=116374
|
| |
|
|
| |
Notes:
svn path=/head/; revision=116373
|
| |
|
|
| |
Notes:
svn path=/head/; revision=116360
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Devices below may experience a change in geometry.
* Due to a bug, aic(4) never used extended geometry. Changes all drives
>1G to now use extended translation.
* sbp(4) drives exactly 1 GB in size now no longer use extended geometry.
* umass(4) drives exactly 1 GB in size now no longer use extended geometry.
For all other controllers in this commit, this should be a no-op.
Looked over by: scottl
Notes:
svn path=/head/; revision=116351
|
| |
|
|
| |
Notes:
svn path=/head/; revision=116150
|
| |
|
|
| |
Notes:
svn path=/head/; revision=116140
|