aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/amd/amd.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC: All of those added MODULE_DEPEND clauses to make CAM and theMatt Jacob2006-12-141-0/+1
| | | | | | | | | actual hardware busses get pulled in if they're modules PRs: 106536, 106543 Notes: svn path=/stable/6/; revision=165194
* Remove bus_{mem,p}io.h and related code for a micro-optimization on i386Yoshihiro Takahashi2005-05-291-1/+0
| | | | | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr) Notes: svn path=/head/; revision=146734
* Use BUS_PROBE_DEFAULTWarner Losh2005-03-061-1/+1
| | | | Notes: svn path=/head/; revision=143168
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139749
* Add missing <sys/module.h> includesPoul-Henning Kamp2004-05-301-0/+1
| | | | Notes: svn path=/head/; revision=129879
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-171-4/+3
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Setting pccb->ccb_h.status to CAM_REQ_CMP one time is enough.Olivier Houchard2004-01-211-1/+0
| | | | Notes: svn path=/head/; revision=124778
* Prefer new location of pci include files (which have only been in theWarner Losh2003-08-221-2/+2
| | | | | | | | 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
* bus_dmamap_create() is no longer optional for non-static dma mappings. ThanksScott Long2003-08-111-0/+14
| | | | | | | to ru@ for testing this. Notes: svn path=/head/; revision=118775
* Record the missing module dependency ("amd" on "cam").Ruslan Ermilov2003-07-311-0/+1
| | | | | | | Reviewed by: scottl Notes: svn path=/head/; revision=118267
* Mega busdma API commit.Scott Long2003-07-011-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Merge common XPT_CALC_GEOMETRY functions into a single convenience function.Nate Lawson2003-06-141-16/+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
* Remove unused variable(s).Poul-Henning Kamp2003-05-311-11/+2
| | | | | | | | | Add XXX comment where intent is unclear. Found by: FlexeLint Notes: svn path=/head/; revision=115559
* Bring back bus_dmasync_op_t. It is now a typedef to an int, though theScott Long2003-05-271-2/+2
| | | | | | | | | | | BUS_DMASYNC_ definitions remain as before. The does not change the ABI, and reverts the API to be a bit more compatible and flexible. This has survived a full 'make universe'. Approved by: re (bmah) Notes: svn path=/head/; revision=115343
* I deserve a big pointy hat for having missed all those referencesMaxime Henrion2003-04-101-2/+2
| | | | | | | to bus_dmasync_op_t in my last commit. Notes: svn path=/head/; revision=113350
* Convert the use of vtophys() for doing autosense to use busdma. Also correctScott Long2002-12-141-12/+75
| | | | | | | some error codes that get returned to CAM. Notes: svn path=/head/; revision=107876
* Move the amd(4) driver to it's own directory in preparation for it growingScott Long2002-12-131-1/+2
| | | | | | | an sbus front-end. Notes: svn path=/head/; revision=107840
* Fix some sizeof(int) != sizeof(void *) warnings.John Baldwin2002-11-081-2/+2
| | | | Notes: svn path=/head/; revision=106668
* Be consistent about functions being static.Poul-Henning Kamp2002-10-161-2/+2
| | | | | | | Spotted by: FlexeLint. Notes: svn path=/head/; revision=105219
* Move unused functions into #if 0 ... #endif.Yoshihiro Takahashi2001-05-061-0/+4
| | | | Notes: svn path=/head/; revision=76306
* Turn on interrupt-entropy harvesting for all/any mass storage devicesMark Murray2001-03-011-1/+2
| | | | | | | | | | 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
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-151-1/+0
| | | | Notes: svn path=/head/; revision=67164
* 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
* Set the value of rid variable for bus_alloc_resource(dev, SYS_RES_IOPORT,...)Yoshihiro Takahashi2000-04-121-2/+4
| | | | | | | | | to PCI_BASE_ADDR0 (== 0x10). Tested by: Brian Somers <brian@Awfulhak.org> Notes: svn path=/head/; revision=59169
* Newbusify amd driver.Yoshihiro Takahashi2000-04-071-88/+94
| | | | | | | Some error messages are added by Brian Somers <brian@Awfulhak.org>. Notes: svn path=/head/; revision=59083
* Ahhrggg. Put the test for the compat shims AFTER the file that includesWarner Losh2000-03-271-4/+4
| | | | | | | | | them. Pointed out by: bde Notes: svn path=/head/; revision=58701
* Per conversations in -current, add #error to these drivers when you don'tWarner Losh2000-03-271-0/+4
| | | | | | | have the right compatibility shims enabled. ISA drivers to follow later. Notes: svn path=/head/; revision=58695
* The error status for a scsi status error is "CAM_SCSI_STATUS_ERROR", not 0.Justin T. Gibbs2000-01-141-1/+2
| | | | Notes: svn path=/head/; revision=55946
* Properly set the alignment argument to bus_dma_tag_create(). If weJustin T. Gibbs1999-08-161-1/+3
| | | | | | | don't care about the alignment, set it to 1, meaning single byte alignment. Notes: svn path=/head/; revision=49860
* First cut at a driver for the amd53c974 PCI SCSI host adapter. ThisJustin T. Gibbs1999-05-221-0/+2436
driver lacks error recovery and still needs more testing, but it's about time I got it under revision control. Submitted by: Tekram Inc. Bus Space/DMA and cleanup: gibbs Notes: svn path=/head/; revision=47411