summaryrefslogtreecommitdiff
path: root/sys/dev/ieee1394
AgeCommit message (Collapse)Author
2003-12-04netbsd.org -> NetBSD.orgkeihan
This was the last commit of this kind to src/sys, which is now totally "NetBSD.org clean". Thanks for the patiance, and sorry for all the commits.
2003-10-26Fix unitialized var warning, add a comment to indicate that it's usefvdl
is suspect.
2003-10-26Fix unitialized variable warnings.christos
2003-10-22Typos in comments. From OpenBSD.mjl
2003-10-18Don't limit xfer size to SBP2_MAXPHYS. Its not transfer size limitenami
but just a threshold how to describe transfer.
2003-08-04sprinkle some LL suffixes on >32 bit number literalsmrg
2003-07-14add missing __KERNEL_RCSID()lukem
2003-07-08function prototype must not have variable nameitojun
2003-07-03maintain statistics countersdrochner
2003-06-29Back out the lwp/ktrace changes. They contained a lot of colateral damage,fvdl
and need to be examined and discussed more.
2003-06-28Pass lwp pointers throughtout the kernel, as required, so that the lwpid candarrenr
be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed. Bump the kernel rev up to 1.6V
2003-05-26Bugfix: fwohci_ir_read(): loop continues when the buffer size not onlyhaya
greater than but also same as packet size. This bug is pointed out by FUKAUMI Naoki.
2003-05-03DMA, not dma nor Dma.wiz
2003-04-02PR/20982: Eric Fair: fix debugging printf format errors.christos
2003-03-07Redo last fix to work correctly. Need to run abort on each orb (though itjmc
doesn't much now it will eventually) and then so a proper sbp2_free_orb.
2003-03-07-Fix ORB queue corruption / use of free()d memorydrochner
caused by bad interaction of sbp2_free() and sbp2_abort(). sbp2_abort() requires that its argument ORB is on the "active" list, and it puts it onto the freelist - sometimes. So we had 2 causes of corruption: -removing the ORB from a list which it isn't on -free()ing recycleable items on the ORB freelist -minor cosmetics
2003-02-28Make this file compiles when FW_DEBUG is defined but SBP2_DEBUG isn't defined.enami
2003-01-31Use aprint_*().thorpej
2003-01-09Use PRIx64 to get the correct format for 64-bit hex numbers. Don'tthorpej
need \n at the end of a panic().
2003-01-06synchronous, not syncronous.wiz
2003-01-05Add some missing splx()'s noted by Krister Walfridssonjmc
2003-01-05Remove arbitrary bufcnt limit in at_output.jmc
2003-01-01Use aprint_normal() in cfprint routines.thorpej
2002-12-28Implementation of page table support for 64k or greater transfers. This shouldjmc
also handle uio structs passed in as well. All standard filesystem actions are working at this stage (can copy, execute, mount, umount, fsck, etc).
2002-12-28Move SBP data area's below the 4G mark as some broken devices seem to clip datajmc
address's to 32 bits. XXX - Need to move the if_fw fifo addr as well but this needs some testing
2002-12-19Add support for page tablesjmc
2002-12-19Add a minphys routine since the single largest packet is less than minphys()jmc
2002-12-19Add defines for supporting page tablesjmc
2002-12-19Updatesjmc
2002-12-19Add additional debugging for fwohci_arrq_input: no listener conditionsjmc
2002-12-18Add SBP2_MAXPHYSjmc
2002-12-18Redo state handling as ack's, status, etc can come in and be processed injmc
various orders depending how the upper level driver is flushing it's queue's. This prevents the deadlocks I was seeing before with >8k writes. XXX: Still not completely there as > 64k copies trigger bugs and the page table support still needs to be written to break those down.
2002-12-13Improve performance with disks almost 60x by redoing the callback handler tojmc
accept ranges as well as single addresses. Still need to go through any key areas and remove the malloc's and replace these with some sort of pooling instead.
2002-12-09Checkpoint commit:jmc
1. Reduce debugging level to sane levels 2. Fix bugs in alloc_data_map related to allocing whole bytes of bitmap at a time. At this point the driver is functional. It talks to a local drive here and can label/newfs. Performance is...lacking at the moment as its chewing cpu heavily (probably due to the number of memcpy's) and will be the next area attacked.
2002-12-09Drop default debugging level to something a bit more sanejmc
2002-12-09Ooops...Make sure for status to set error and resid before calling thejmc
completion routines. Makes reads actually return data to userland now which means I can now put a disklabel on the drive.
2002-12-09Restructure how the at_output dma map gets setup. Ask for a dma map that canjmc
support up to the max ohci descriptor segments. Then attempt to fill it in via a load. Use the number of segments filled in as the basis for figuring out how many descriptors to supply to the ohci DMA engine. XXX: Still needs to account for requests which because of splits may overflow the 6 dma descriptors available today. For now this fixes cases where a single 512 byte write was getting split into 2 dma segments from 1 incoming iov request
2002-12-09Fix fwohci_write's sanity check against large packets. Max rec is only usedjmc
when writing directly to the device (ala IEEE1394_TCODE_WRITE_REQ_BLOCK). Otherwise the largest size is determined strictly by speed
2002-12-09Provide a macro for turning a speed number into a max rec valuejmc
2002-12-09Write sbp2_free_data_mapping and fix a bug where read responses weren't sendingjmc
back the right tlabel
2002-12-09Don't need sbp2_datamapping. Each one is tracked via the associated orbjmc
2002-12-08Fix logic screwup in determining which bits to set in alloc'ing data mapsjmc
2002-12-06Account for corner cases better in alloc_data_mapping and only ask for a 16sjmc
reconnect time instead of 2^16s
2002-12-06Fill in sc1394_node_id after a self id cyclejmc
2002-12-06Add a def for a smaller reconnect time that will be used by defaultjmc
2002-12-05Cast appropriately so that this compiles on sparc, sparc64, macppc etc.agc
2002-12-04New Feature: add pseudo device for IEEE 1394 isochronous stream andhaya
isochronous reception routine for IEEE 1394 OHCI (fwohci). The transmission part is under construction. The minimum configuration options for this feature are: # IEEE 1394 (i.LINK) fwohci* at pci? dev ? function ? pseudo-device fwiso 1
2002-12-03make this compile without SBP2_DEBUG definedexplorer
2002-12-01Set the only big quirk since the drives I've tried return errors on 6 byte cdbsjmc
2002-12-01Checkpoint checkin:jmc
1. Clean up some debugging and trigger some on only extreme debugging needs 2. Comment alloc data mapping a bit better and fix some of the bugs here (note..there still are some so for now the free method is never called while I track these down) 3. Fix the copying logic in data_resp. It was calculating negative offsets which blew up memcpy. At this point I can probe, inquire and get through the findroot steps of a boot: sd0 at scsibus0 target 0 lun 0: <Maxtor, 1394 storage, 60> disk fixed sd0: mode sense (4) returned nonsense; using fictitious geometry sd0: 76293 MB, 76293 cyl, 64 head, 32 sec, 512 bytes/sect x 156250000 sectors sd0: mode sense (4) returned nonsense; using fictitious geometry sd0: no disk label findroot: can't open dev sd0a (6) NOTE: This will panic my machine right now with a simple disklabel -r sd0. Also, since the free mappings routines are if (0)'d out at the moment do not use this code for anything except experiments and then only on a machine you don't mind panic'ing. Fixing the mapping routines will be the next step and then finally chasing down the proper mode sense these drives understand.