History log of /src/sys/arch/mac68k/dev/ncr5380.c |
Revision | | Date | Author | Comments |
1.72 |
| 01-Aug-2023 |
andvar | fix various typos in comments.
|
1.71 |
| 07-Apr-2022 |
andvar | fix various typos in comments.
|
1.70 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.69 |
| 24-Apr-2021 |
thorpej | branches: 1.69.8; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.68 |
| 29-Sep-2020 |
msaitoh | branches: 1.68.4; s/implicitely/implicitly/
|
1.67 |
| 18-Oct-2014 |
snj | src is too big these days to tolerate superfluous apostrophes. It's "its", people!
|
1.66 |
| 25-Oct-2013 |
martin | Simplify
|
1.65 |
| 27-Oct-2012 |
chs | branches: 1.65.2; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.64 |
| 28-Feb-2010 |
snj | branches: 1.64.10; 1.64.20; Fight the ever-increasing size of src checkouts by spelling "useful" without an extra l.
|
1.63 |
| 20-Oct-2009 |
snj | branches: 1.63.2; Remove 3rd and 4th clause on Leo Weppelman's license. OK leo@.
|
1.62 |
| 25-Feb-2006 |
wiz | branches: 1.62.72; Fix typos, reported by Alexey Dobriyan ("Gathered from Linux"), forwarded by jmc@openbsd.
|
1.61 |
| 24-Dec-2005 |
perry | branches: 1.61.2; 1.61.4; 1.61.6; __asm__ -> __asm __const__ -> const __inline__ -> inline __volatile__ -> volatile
|
1.60 |
| 11-Dec-2005 |
christos | merge ktrace-lwp.
|
1.59 |
| 16-Jun-2005 |
jmc | branches: 1.59.2; Shadowing and const fixes.
|
1.58 |
| 21-Feb-2005 |
thorpej | Part 1 of a cleanup pass over the SCSI subsystem. The aim is to name everything "scsi_*", since we really are talking about the SCSI command set, ATAPI transport not withstanding. Improve the names of many structures, and prepend "SCSI_" onto all SCSI command opcodes. Place items described by the SCSI Primary Commands document into scsi_spc.h.
|
1.57 |
| 15-Jan-2005 |
chs | branches: 1.57.2; 1.57.4; de-__P, remove register, ansify, b* -> mem*.
|
1.56 |
| 07-Dec-2004 |
thorpej | - Use the cmdlen specified in the scsipi_xfer structure. Keying off the command group ID won't necessarily work for vendor-specific commands. - Expand the storage in the SC_REQ structure to account for 16-byte commands.
|
1.55 |
| 30-Oct-2003 |
matt | Fix real uninitialized variable bug.
|
1.54 |
| 30-Oct-2003 |
matt | Fix indentation/whitespace.
|
1.53 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.52 |
| 03-May-2003 |
wiz | branches: 1.52.2; DMA, not dma nor Dma.
|
1.51 |
| 02-Apr-2003 |
thorpej | Use PAGE_SIZE rather than NBPG.
|
1.50 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.49 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.48 |
| 27-Sep-2002 |
provos | remove trailing \n in panic(). approved perry.
|
1.47 |
| 25-Apr-2001 |
bouyer | branches: 1.47.2; 1.47.8; Pull up the thorpej_scsipi branch to main branch. This is a completely rewritten scsipi_xfer execution engine, and the associated changes to HBA drivers. Overview of changes & features: - All xfers are queued in the mid-layer, rather than doing so in an ad-hoc fashion in individual adapter drivers. - Adapter/channel resource management in the mid-layer, avoids even trying to start running an xfer if the adapter/channel doesn't have the resources. - Better communication between the mid-layer and the adapters. - Asynchronous event notification mechanism from adapter to mid-layer and peripherals. - Better peripheral queue management: freeze/thaw, sorted requeueing during recovery, etc. - Clean separation of peripherals, adapters, and adapter channels (no more scsipi_link). - Kernel thread for each scsipi_channel makes error recovery much easier (no more dealing with interrupt context when recovering from an error). - Mid-layer support for tagged queueing: commands can have the tag type set explicitly, tag IDs are allocated in the mid-layer (thus eliminating the need to use buggy tag ID allocation schemes in many adapter drivers). - support for QUEUE FULL and CHECK CONDITION status in mid-layer; the command will be requeued, or a REQUEST SENSE will be sent as appropriate.
Just before the merge syssrc has been tagged with thorpej_scsipi_beforemerge
|
1.46 |
| 12-Dec-1999 |
scottr | branches: 1.46.6; Replace references to PGOFSET with m68k_trunc_page() and m68k_page_offset(), as appropriate.
|
1.45 |
| 30-Sep-1999 |
thorpej | branches: 1.45.2; 1.45.8; Update for SCSIPI changes.
|
1.44 |
| 05-Dec-1998 |
mjacob | branches: 1.44.4; Update HBAs to incorporate the new max_lun property.
|
1.43 |
| 19-Nov-1998 |
thorpej | Adapt to the new scsipi_adapter interface.
|
1.42 |
| 10-Oct-1998 |
thorpej | Garbage-collect the open_target_lu and close_target_lu entry points from struct scsipi_adapter; they were not used.
Add a scsipi_ioctl entry point to struct scsipi_adapter. This will be used to issue ioctl commands to the host adapters.
Inspired by PR #6090, from Matt Jacob.
|
1.41 |
| 02-Jul-1998 |
wrstuden | Another printf("%:"...) bites the dust (->vprintf(...))
|
1.40 |
| 12-Jan-1998 |
thorpej | Update for changes to config.
|
1.39 |
| 27-Aug-1997 |
bouyer | Merge scsipi branch in the mainline. This add support for ATAPI devices (currently only CD-ROM drives on i386). The sys/dev/scsipi system provides 2 busses to which devices can attach (scsibus and atapibus). This needed to change some include files and structure names in the low level scsi drivers.
|
1.38 |
| 19-Dec-1996 |
scottr | branches: 1.38.8; 1.38.10; Clean up a few bogons+typos introduced in the removal of the broken indirect config code.
|
1.37 |
| 16-Dec-1996 |
scottr | Convert all foo_match() functions to use a `struct cfdata *' for their second argument. The NuBus autoconfig code had to be reorganized as a result of this, and looks much more like a directly-attached bus now. These changes eliminate __BROKEN_INDIRECT_CONFIG.
|
1.36 |
| 10-Dec-1996 |
thorpej | Fill in sc_link.max_target
|
1.35 |
| 13-Oct-1996 |
christos | backout previous kprintf change
|
1.34 |
| 11-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.33 |
| 28-Aug-1996 |
cgd | (1) set scsi_link channel to either the appropriate channel (if a multi-channel driver), or to SCSI_CHANNEL_ONLY_ONE if a single-channel driver. (2) use scsiprint() rather than a locally-defined autoconfig print function, and kill any locally-defined print function.
|
1.32 |
| 27-Aug-1996 |
cgd | change cfprint_t type definition to take a const char *, rather than a char *, because that's what was really intended, and because if the print function modifies the string, various things could become unhappy (so the string should _not_ be modified).
|
1.31 |
| 23-Jun-1996 |
briggs | Add a comment about the last change.
|
1.30 |
| 07-Jun-1996 |
briggs | Wait longer (2.5 sec) in wait_req_true/false. Some targets take a long time.
|
1.29 |
| 22-May-1996 |
briggs | Get rid of compiler warning if DBG_PID is not defined.
|
1.28 |
| 06-May-1996 |
briggs | branches: 1.28.4; Update to something closer to the atari port.
|
1.27 |
| 05-May-1996 |
briggs | Prototype for -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized Also change the device probing scheme to use something a bit more rational. A current side-effect is that nubus cards are double-mapped. I expect to fix that shortly. Also change splclock() to block everything but serial hardware interrupts.
|
1.26 |
| 30-Mar-1996 |
christos | Change %r -> %: as for recursive printf's
|
1.25 |
| 29-Mar-1996 |
briggs | Fix minor oversight in a sanity check--caught by Jason, I think, and reported by Scott.
|
1.24 |
| 20-Mar-1996 |
scottr | Fix a long-standing bug uncovered by the new device attachment model. Thanks to Jason Thorpe for the fix (fixed PR 2235).
|
1.23 |
| 17-Mar-1996 |
thorpej | New device attachment scheme:
- split softc size and match/attach out from cfdriver into a new struct cfattach.
- new "attach" directive for files.*. May specify the name of the cfattach structure, so that devices may be easily attached to parents with different autoconfiguration semantics.
|
1.22 |
| 07-Mar-1996 |
briggs | Fix a typo in last.
|
1.21 |
| 07-Mar-1996 |
briggs | Disable SCSI linked commands, but allow kernel option to override.
|
1.20 |
| 19-Feb-1996 |
briggs | Update to latest Atari driver, but with some local modifications.
|
1.19 |
| 03-Feb-1996 |
briggs | Move debugging defines, etc. into mac68k5380.c and use them instead of something similar but different. Make a few cosmetic changes.
|
1.18 |
| 24-Jan-1996 |
briggs | Patch a few of the holes in the machine-dependent part of this driver. Sync the m.i. part with the Atari.
|
1.17 |
| 06-Jan-1996 |
briggs | Fix from Paul Goyette for off-by-one error.
|
1.16 |
| 06-Jan-1996 |
briggs | Bring in a few changes from Atari port. Add support from Paul Goyette for keeping more than just the last 2 states when debugging.
|
1.15 |
| 13-Dec-1995 |
briggs | Fix from Paul Goyette to disable linked commands on drives that reject them for simple commands. Leo W. reports that this does not work for some systems. It's better than what we have now, though. From Paul Goyette <paul@pgoyette.bdt.com>.
|
1.14 |
| 04-Dec-1995 |
briggs | Fix from Paul Goyette (paul@pgoyette.bdt.com) for drives that don't grok linked commands.
|
1.13 |
| 01-Dec-1995 |
briggs | cmdlen-2 is right for the last byte of the command. Ifdef out for right now, though, as some devices apparently don't support linked commands and will reject commands that have the link bit set in them.
|
1.12 |
| 30-Nov-1995 |
briggs | Put the link flag in the right place. Pointed out by Paul@pgoyette.bdt.com (Paul Goyette).
|
1.11 |
| 31-Oct-1995 |
briggs | Pull in all but one of Leo's changes from the atari copy.
|
1.10 |
| 08-Oct-1995 |
briggs | branches: 1.10.2; Pick up changes from leo's latest version.
|
1.9 |
| 02-Oct-1995 |
briggs | Change to allow nack_message() to take an argument and send MSG_REJECT_MESSAGE instead of MSG_ABORT when we get an extended message. This allows a DEC drive to work when it attempts to negotiate synch. transfers on us.
|
1.8 |
| 18-Sep-1995 |
briggs | Do not define MIN_PHYS here--it is m.d..
|
1.7 |
| 16-Sep-1995 |
briggs | Sync. with atari ncr5380.c -- mainly whitespace changes.
|
1.6 |
| 16-Sep-1995 |
briggs | Rename scsi_main_irq() to pdma_ready(). Missed a few ATNs in last patch. (pointed out by Leo). Raise timeout from 100 to 1000. From Leo.
|
1.5 |
| 15-Sep-1995 |
briggs | As Leo pointed out, my last change was not safe. This one should be. I added two new bitfields to ncr_softc. They flag which devices have been selected, and which ones have failed to go to message out when selected with ATN. If a target fails to go to message out the first time it is selected, it goes into the latter bitfield. If it fails thereafter, we treat it as we did before.
|
1.4 |
| 14-Sep-1995 |
briggs | Gah... The Asante SCSI/ethernet box doesn't answer the ATN request for a 'MESSAGE OUT' phase, so add support in scsi_select() for the phase to be either 'MESSAGE OUT' or 'COMMAND'.
|
1.3 |
| 12-Sep-1995 |
briggs | Updates from Leo's changes in the atari port.
|
1.2 |
| 05-Sep-1995 |
briggs | Remove infinite loop per Leo and Mycroft.
|
1.1 |
| 03-Sep-1995 |
briggs | Make a local copy of the atari m.i. scsi driver sources for the time being. Some people aren't supping arch/atari and this allows those people to get the sources.
|
1.10.2.2 |
| 31-Oct-1995 |
briggs | Bring in version from HEAD.
|
1.10.2.1 |
| 16-Oct-1995 |
briggs | Get rid of an 'if' in reselect() that causes a hang for me--pointed out by Leo and Mattias(sp?).
|
1.28.4.2 |
| 25-Jun-1996 |
jtc | Pulled up from rev 1.30 by request from Allen Briggs
|
1.28.4.1 |
| 01-Jun-1996 |
scottr | Pull up version 1.29 from the main branch (unused variable warning)
|
1.38.10.1 |
| 27-Aug-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.38.8.1 |
| 01-Jul-1997 |
bouyer | Updates for new scsipi subsystem. Actally known to work on i386 and sparc.
|
1.44.4.2 |
| 12-Dec-1999 |
scottr | Sync with main branch.
|
1.44.4.1 |
| 02-Nov-1999 |
scottr | [Redo] Sync with main branch.
|
1.45.8.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.45.2.3 |
| 29-Mar-2001 |
bouyer | Pass compile-test on i386.
|
1.45.2.2 |
| 27-Mar-2001 |
bouyer | Convert to thorpej_scsipi (untested).
|
1.45.2.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago A i386 GENERIC kernel compiles without the siop, ahc and bha drivers (will be updated later). i386 IDE/ATAPI and ncr work, as well as sparc/esp_sbus. alpha should work as well (untested yet). siop, ahc and bha will be updated once I've updated the branch to current -current, as well as machine-dependant code.
|
1.46.6.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.47.8.2 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.47.8.1 |
| 25-Apr-2001 |
nathanw | file ncr5380.c was added on branch nathanw_sa on 2002-10-18 02:38:20 +0000
|
1.47.2.1 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.52.2.7 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.52.2.6 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.52.2.5 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
1.52.2.4 |
| 18-Dec-2004 |
skrll | Sync with HEAD.
|
1.52.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.52.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.52.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.57.4.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.57.2.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.59.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.61.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.61.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.61.2.1 |
| 01-Mar-2006 |
yamt | sync with head.
|
1.62.72.1 |
| 11-Mar-2010 |
yamt | sync with head
|
1.63.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
1.64.20.3 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.64.20.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.64.20.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.64.10.2 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.64.10.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.65.2.1 |
| 18-May-2014 |
rmind | sync with head
|
1.68.4.1 |
| 21-Mar-2021 |
thorpej | Give config_found() the same variadic arguments treatment as config_search(). This commit only adds the CFARG_EOL sentinel to the existing config_found() calls. Conversion of config_found_sm_loc() and config_found_ia() call sites will be in subsequent commits.
|
1.69.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|