aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/aic
Commit message (Collapse)AuthorAgeFilesLines
* Prepare for future integration between CAM and newbus. xpt_bus_registerScott Long2007-06-175-1/+5
| | | | | | | | | | now takes a device_t to be the parent of the bus that is being created. Most SIMs have been updated with a reasonable argument, but a few exceptions just pass NULL for now. This argument isn't used yet and the newbus integration likely won't be ready until after 7.0-RELEASE. Notes: svn path=/head/; revision=170872
* Remove Giant from CAM. Drivers (SIMs) now register a mutex that CAM willScott Long2007-04-151-1/+4
| | | | | | | | | | | | | | use to synchornize and protect all data objects that are used for that SIM. Drivers that are not yet MPSAFE register Giant and operate as usual. RIght now, no drivers are MPSAFE, though a few will be changed in the coming week as this work settles down. The driver API has changed, so all CAM drivers will need to be recompiled. The userland API has not changed, so tools like camcontrol do not need to be recompiled. Notes: svn path=/head/; revision=168752
* o break newbus api: add a new argument of type driver_filter_t toPaolo Pisati2007-02-233-3/+3
| | | | | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@ Notes: svn path=/head/; revision=166901
* 2nd and final commit that moves us to CAM_NEW_TRAN_CODEMatt Jacob2006-11-021-86/+0
| | | | | | | | | as the default. Reviewed by multitudes. Notes: svn path=/head/; revision=163896
* The first of 3 major steps to move the CAM layer forward to usingMatt Jacob2006-10-311-10/+117
| | | | | | | | | | | | | | | | | | | | | | | | the CAM_NEW_TRAN_CODE that has been in the tree for some years now. This first step consists solely of adding to or correcting CAM_NEW_TRAN_CODE pieces in the kernel source tree such that a both a GENERIC (at least on i386) and a LINT build with CAM_NEW_TRAN_CODE as an option will compile correctly and run (at least with some the h/w I have). After a short settle time, the other pieces (making CAM_NEW_TRAN_CODE the default and updating libcam and camcontrol) will be brought in. This will be an incompatible change in that the size of structures related to XPT_PATH_INQ and XPT_{GET,SET}_TRAN_SETTINGS change in both size and content. However, basic system operation and basic system utilities work well enough with this change. Reviewed by: freebsd-scsi and specific stakeholders Notes: svn path=/head/; revision=163816
* aic_pccard_products can be static.Warner Losh2006-10-031-1/+1
| | | | | | | Noticed by: cscope Notes: svn path=/head/; revision=162979
* Eliminate support for oldcard by removing the compat shims.Warner Losh2005-09-201-26/+5
| | | | Notes: svn path=/head/; revision=150392
* Eliminate unused argument in PCMCIA_CARD macro.Warner Losh2005-06-241-5/+5
| | | | | | | | | | | Provide a backwards compatible way to have the extra macro by defining PCCARD_API_LEVEL 5 before including pccarddevs for driver writers that want/need to have the same driver on 5 and 6 with pccard attachments. Approved by: re (dwhite) Notes: svn path=/head/; revision=147580
* Remove bus_{mem,p}io.h and related code for a micro-optimization on i386Yoshihiro Takahashi2005-05-293-3/+0
| | | | | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr) Notes: svn path=/head/; revision=146734
* Remove ifdef PC98.Yoshihiro Takahashi2005-04-131-22/+0
| | | | Notes: svn path=/head/; revision=145009
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139749
* Fix disordering of pccarddevs.h noticed by bde. Also remove a fewWarner Losh2004-05-271-1/+1
| | | | | | | | | redundant includes and fix some of the include disordering. Submitted by: bde Notes: svn path=/head/; revision=129764
* Move to generating pccarddevs.h on the fly, both for the kernel andWarner Losh2004-05-261-1/+1
| | | | | | | | | | the modules. Also generate usbdevs.h automatically now, but a non-kernel file is stopping that at the moment. Notes: svn path=/head/; revision=129740
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-173-10/+9
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Use __FBSDID().David E. O'Brien2003-08-244-8/+12
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* In aic_reconnect()i, initialize scb. On ia64 the compiler warns aboutMarcel Moolenaar2003-08-231-0/+1
| | | | | | | a possible uninitialized variable. Notes: svn path=/head/; revision=119360
* Merge common XPT_CALC_GEOMETRY functions into a single convenience function.Nate Lawson2003-06-141-19/+1
| | | | | | | | | | | | | | | | 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
* Make sure that pp_name is non-null before setting the deviceWarner Losh2003-04-101-1/+2
| | | | | | | | description. This allows us to rely entirely on the CIS entries if necessary... Notes: svn path=/head/; revision=113315
* Add second and thrid bus-toaster IDsWarner Losh2002-11-141-0/+2
| | | | Notes: svn path=/head/; revision=106893
* Be consistent about "static" functions: if the function is markedPoul-Henning Kamp2002-09-281-1/+1
| | | | | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512 Notes: svn path=/head/; revision=104094
* Remove __P.Alfred Perlstein2002-03-204-32/+32
| | | | Notes: svn path=/head/; revision=92739
* Support for LG GM82C700, an AIC6360 clone.Luoqi Chen2002-03-153-11/+39
| | | | Notes: svn path=/head/; revision=92370
* Back out the hack from rev 1.13 that was done to initiate a bus rescanJoerg Wunsch2002-01-171-35/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | at insert time. When asking gibbs for approval for an MFC, this was his reply: 1) It leaks memory if it can't allocate a path. 2) It defers allocation of aic->path until the call to scan the bus. This means the path may be NULL when an interrupt occurs prior to the call to scan the bus (stray bus reset for instance), which will lead to a panic. 3) The driver in current doesn't recover from the failure to allocate aic->path. The driver doesn't check during normal operation if the path is NULL, so again a panic will result. 4) aic_cam_rescan calls malloc with M_WAITOK. aic_cam_rescan is called from attach where it isn't necessarily safe to sleep. 5) And most importantly, it co-opts the xpt_periph from the driver level. This was never part of the design (xpt_periph used to be static). Making a call of this type may completely confuse the XPT if other XPT operations are ongoing. In the long term, Justin and Warner agreed to implement solution where CAM itself will initiate the bus rescan if a new bus is added. For the time being (and in particular in light of the upcoming 4.5 release), we now have camcontrol available on the boot floppy, and can have pccardd initiate the rescan through it. Notes: svn path=/head/; revision=89474
* Migrate to PCMCIA_CARD() macrosWarner Losh2001-11-151-9/+3
| | | | Notes: svn path=/head/; revision=86394
* s/PCCARD_/PCMCIA_/g in NEWCARD device tables to enable easier NetBSD sharingWarner Losh2001-11-111-9/+9
| | | | Notes: svn path=/head/; revision=86273
* Merged from sys/dev/aic/aic_isa.c revision 1.8.Yoshihiro Takahashi2001-06-261-7/+3
| | | | Notes: svn path=/head/; revision=78807
* Add PnP IDs for AHA-1530 and AHA-1520 cards.Warner Losh2001-06-061-1/+7
| | | | | | | | PR: 19497, 18378 Submitted by: Martijn Plak <martijn@be3.com> Notes: svn path=/head/; revision=77844
* Merged from sys/dev/aic/aic_isa.c revision 1.7.Yoshihiro Takahashi2001-04-011-1/+5
| | | | Notes: svn path=/head/; revision=75054
* Fix a few things in the aic(4) driver:Kenneth D. Merry2001-03-164-7/+47
| | | | | | | | | | | | | - enable 10MHz (fast SCSI) operation on boards that support it. (only aic6360 boards with fast SCSI enabled can do it) - bounds check sync periods and offsets passed in from the transport layer - tell the user which resource allocation failed (for the ISA probe) if we weren't able to allocate an IRQ, DRQ or I/O port. Notes: svn path=/head/; revision=74370
* Turn on interrupt-entropy harvesting for all/any mass storage devicesMark Murray2001-03-013-6/+6
| | | | | | | | | | I could find. I have no doubt missed a couple. Interrupt entropy harvesting is still conditional on the kern.random.sys.harvest_interrupt sysctl. Notes: svn path=/head/; revision=73280
* Sigh, nobody ever got back to me about this. So, here it is..Peter Wemm2001-02-231-8/+35
| | | | | | | Implement auto scsi scan at insert time for the aic driver. Notes: svn path=/head/; revision=72931
* Use PCCARD_CIS_xxx #defines for the table of oem ids. These usuallyWarner Losh2001-01-211-6/+6
| | | | | | | translate to all NULLs (as for all the ones in this commit). Notes: svn path=/head/; revision=71323
* Add aic to the list of drivers that might work with NEWCARD. I've addedWarner Losh2001-01-081-6/+43
| | | | | | | | the same config lines that NetBSD has. This builds with both NEWCARD and GENERIC config files. Notes: svn path=/head/; revision=70782
* Add module dependencies on CAM module.Warner Losh2000-12-133-0/+3
| | | | | | | Submitted by: Michael Reifenberger Notes: svn path=/head/; revision=69960
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-151-1/+0
| | | | Notes: svn path=/head/; revision=67164
* remove 5 unnecessary includes, per phk's scriptWarner Losh2000-09-204-5/+0
| | | | Notes: svn path=/head/; revision=66138
* Terminate aic_ids[]Brian Somers2000-06-191-0/+1
| | | | Notes: svn path=/head/; revision=61835
* Unused include: #include "aic.h"Peter Wemm2000-06-101-2/+0
| | | | Notes: svn path=/head/; revision=61485
* Back out the previous change to the queue(3) interface.Jake Burkholder2000-05-261-1/+1
| | | | | | | | | It was not discussed and should probably not happen. Requested by: msmith and others Notes: svn path=/head/; revision=60938
* Change the way that the queue(3) structures are declared; don't assume thatJake Burkholder2000-05-231-1/+1
| | | | | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd Notes: svn path=/head/; revision=60833
* Remove ~25 unneeded #include <sys/conf.h>Poul-Henning Kamp2000-04-191-1/+0
| | | | | | | Remove ~60 unneeded #include <sys/malloc.h> Notes: svn path=/head/; revision=59391
* Remove unneeded <sys/buf.h> includes.Poul-Henning Kamp2000-04-181-1/+0
| | | | | | | | Due to some interesting cpp tricks in lockmgr, the LINT kernel shrinks by 924 bytes. Notes: svn path=/head/; revision=59368
* - Added PC-98 Cbus frontend.Yoshihiro Takahashi2000-03-291-0/+281
| | | | | | | | | | - Move dev/aic/aic_isa.c entry from conf/files to conf/files.MACHINE because PC-98 uses different file. Submitted by: nyan and IMAI Takeshi <take-i@ceres.dti.ne.jp> Notes: svn path=/head/; revision=58789
* Add support to aic for pccard attachments. Reports from testers haveWarner Losh2000-01-143-1/+185
| | | | | | | | | | been so positive that I'm going to go ahead and commit this now rather than do another round of patches. My Adaptec 1460D works great with these changes. Notes: svn path=/head/; revision=55997
* Adjust data pointers for untransmitted bytes in fifos when there's phaseLuoqi Chen1999-12-161-5/+13
| | | | | | | change during data transfer. Notes: svn path=/head/; revision=54687
* Disconnect and tagged queueing now really work. Also fix a bug that'sLuoqi Chen1999-12-043-101/+115
| | | | | | | causing problems to slow devices. Notes: svn path=/head/; revision=54136
* Bug fix: allow reset device command to complete.Luoqi Chen1999-10-281-1/+5
| | | | Notes: svn path=/head/; revision=52587
* Fix a typo which would result a bad REQUEST SENSE command be sent toLuoqi Chen1999-10-261-5/+19
| | | | | | | | | a device at lun != 0. Enable tagged queueing (should it be spelled as queuing?) by default. Notes: svn path=/head/; revision=52536
* A few improvements and cleanups.Luoqi Chen1999-10-211-48/+61
| | | | Notes: svn path=/head/; revision=52427
* Non-functional changes. Add some comments before I start to forget howLuoqi Chen1999-10-211-3/+111
| | | | | | | everything works myself. Notes: svn path=/head/; revision=52425