summaryrefslogtreecommitdiff
path: root/sys/dev/ic/aic79xx.c
AgeCommit message (Collapse)Author
2004-12-30Current ahd timeout code does nothing. Add fbsd style timeoutKenneth R Westerback
handling which will at least try to recover. ok marco@.
2004-12-20Activate packetized status handling.Kenneth R Westerback
ok tdeval@.
2004-12-19Reduce delta to FreeBSD by adding and using ahd_alloc() rather thanKenneth R Westerback
manually reproducing bits in ahd_pci.c. Just as in ahc, avoid allocating and freeing zero length bits of memory for platform data. Don't try to free all or part of ahd_softc, but correctly free allocated memory for seep_config if necessary. Add a final few fields to ahd_softc and scb in preparation for updating/fixing timeout handling. No functional changes.
2004-12-13Oops. Missed one chunk when sync'ing with FreeBSD r1.30.Kenneth R Westerback
2004-12-13Use millisends rather than microseconds in parameters to timerKenneth R Westerback
functions, and ultra-conservative calculations, to avoid possible overflow issues. Also consistant with values passed in scsi requests. Whitespace and comment tweaks. Update FreeBSD tags now that we are sync'd to the latest version. From FreeBSD aic79xx.c r1.33, aic79xx.h r1.23, aic_osm_lib.h r1.4.
2004-12-11Invert the polarity of two tests in the recovery code that could causeKenneth R Westerback
the driver to issue a bus reset more quickly than intended. We want to wait if we find another SCB that could be the cause of this timeout, not proceed to a bus reset. This code is currently inside an #ifdef 0/#endif pair. From FreeBSD aic79xx.c r1.32.
2004-12-11Correct a very rare case where command ordering could be compromisedKenneth R Westerback
by a transaction performing a driver handled message sequence (an scb with the MK_MESSAGE flag set). Full details on changes in FreeBSD commit message. From FreeBSD aic79xx.c r1.30, using microcode generated from just committed new source. Tested in August by marco@.
2004-12-10Factor out repeated code into ahd_done_with_status().Kenneth R Westerback
From FreeBSD aic79xx.h r1.20 and aic79xx.c r1.30.
2004-12-10Include scsi id in debug message for queued SCB's.Kenneth R Westerback
From FreeBSD aic79xx_inline.h r1.16.
2004-11-23More FreeBSD delta reduction. Use aic_* defines rather than ahd_* oneKenneth R Westerback
line and zero line functions. Fix a potential bug (ahd_set_transaction_status was used where ahd_set_scsi_status was intended) inside a currently #ifdef 0/#endif section of code. No functional changes intended except for a bit of extra locking via ahd_list_lock*. ok marco@.
2004-11-18More NetBSD cruft removal/FreeBSD delta reduction. Whitespace, function and ↵Kenneth R Westerback
variable shuffle. No functional change.
2004-11-14More NetBSD cruft removal, starting with 'struct ahd_pci_busdata' andKenneth R Westerback
the fallout from that. Ensure pcireg_t variables are being used with pci_conf_read/write functions - found one uint16_t variable (pcix_status) being used to store and restore (32 bit) pcireg_t values. Some KNF. No functional changes.
2004-11-13Eliminate more cruft that crept in during FreeBSD -> NetBSD -> OpenBSDKenneth R Westerback
travels. Simplify create_dmamem/free_dmamem api.
2004-10-24More freebsd delta reduction. Eliminate use of NetBSD scsipi definesKenneth R Westerback
in favour of OpenBSD ones where no FreeBSD equivalent exist. Backout random whitespace variances. Backout field name change, changeing physaddr back to original busaddr. Remove VL/EISA stuff mistakenly brought in from ahc. No change to generated code.
2004-10-24Shuffle defines around so that ahc and ahd use the aic_ names thatKenneth R Westerback
come with the freebsd sources, rather than duplicating those names in the ahd_ and ahc_ namespaces. Big reduction in delta to freebsd sources, which reduces noise when updating the code. No .o differences found on i386. ok marco@.
2004-10-24Minimize delta to FreeBSD in preparation for bringing in updates.Kenneth R Westerback
Mostly using recently defined scsi_message.h defines, and new and existing aic7xxx_cam.h defines to eliminate magic numbers or name variations. A few whitespace revisions. If we aren't putting the code in KNF, no need to live with other whitespace modifications. ok marco@.
2004-09-24timedout is not an english word, complaint from theo, ok marcoHenning Brauer
2004-09-18support microcode being const; krw@ okMichael Shalayeff
2004-08-23Fix license. ok krw@, deraadt@ tedu@ & Milos Urbanek <urbanek at zoom-int.cz>Marco Peereboom
2004-08-06Remove __static inline to make the kernel ~24k smaller on i386 and make the ↵Marco Peereboom
debug sessions bearable. ok krw@ deraadt@
2004-06-23Make AHD_DEBUG compile. ok krw@Marco Peereboom
2004-06-21Fix ahd_[get|set]_transaction_status vs ahd_[get|set]_scsi_status confusion.Kenneth R Westerback
Allocate max number of SCB's at initialization. Display negotiated transfer parameters. ok marco@
2004-05-25Attach scsi bus, find devices without crashing, successfully do simpleKenneth R Westerback
i/o's on i386. De-static many functions. ok marco@
2004-05-20Remove bogus $Id.Marco Peereboom
2004-05-20Add ahd. ok krw@Marco Peereboom