summaryrefslogtreecommitdiffstats
path: root/sys/i386/eisa
Commit message (Collapse)AuthorAgeFilesLines
* Pre 4.0 tidy up.peter2000-01-148-3665/+0
| | | | | | | | | | | | Collect together the components of several drivers and export eisa from the i386-only area (It's not, it's on some alphas too). The code hasn't been updated to work on the Alpha yet, but that can come later. Repository copies were done a while ago. Moving these now keeps them in consistant place across the 4.x series as the newbusification progresses. Submitted by: mdodd
* Remove the 'ivars' arguement to device_add_child() andmdodd1999-12-031-1/+3
| | | | | | | | | | | | | | | | device_add_child_ordered(). 'ivars' may now be set using the device_set_ivars() function. This makes it easier for us to change how arbitrary data structures are associated with a device_t. Eventually we won't be modifying device_t to add additional pointers for ivars, softc data etc. Despite my best efforts I've probably forgotten something so let me know if this breaks anything. I've been running with this change for months and its been quite involved actually isolating all the changes from the rest of the local changes in my tree. Reviewed by: peter, dfr
* Delete unneeded #includepeter1999-10-111-2/+0
| | | | Submitted by: phk
* Remove old copies. These files now live in src/sys/dev/buslogicmdodd1999-10-091-348/+0
|
* Remove these files as they now live in sys/dev/dpt/mdodd1999-10-092-327/+0
|
* Turn off and remove the 'old' if_ep ISA/EISA/PCCARD driver.mdodd1999-10-011-309/+0
| | | | | | | | | | | | | | | | | | | | | | | | Turn on the 'new' if_ep driver which supports: ISA 3c509 MCA 3c529 EISA 3c579 PCCARD 3c589 I think all we're missing is support for the VME bus and S-100 bus Etherlink III cards. The new code has been tested by a number of people and all the important bits work. I've not been able to test the EISA code but will do so once my hardware arrives. Since I've changed nothing in the EISA code I suspect it will perform the same manner as before. Future changes involve whacking the ISA and PCCARD front ends to use newbus and to convert the driver to bus_space and make it use ifmedia. This is the first working network driver that supports MCA bus devices btw. Enjoy.
* $Id$ -> $FreeBSD$peter1999-08-2811-11/+11
|
* Properly set the alignment argument to bus_dma_tag_create(). If wegibbs1999-08-165-12/+12
| | | | don't care about the alignment, set it to 1, meaning single byte alignment.
* I'm not sure how this wasn't in the last commit but anyhow...mdodd1999-08-021-2/+2
| | | | 'int irq' -> 'struct irq_node *irq'
* Move the specification of EDGE/LEVEL triggered interrupts tomdodd1999-08-0111-52/+80
| | | | | | | | | | | | | | | | | eisa_add_intr() which now takes an additional arguement (one of EISA_TRIGGER_LEVEL or EISA_TRIGGER_EDGE). The flag RR_SHAREABLE has no effect when passed to bus_alloc_resource(dev, SYS_RES_IRQ, ...) in an EISA device context as the eisa_alloc_resource() call (bus_alloc_resource method) now deals with this flag directly, depending on the device ivars. This change does nothing more than move all the 'shared = inb(foo + iobsse)' nonesense to the device probe methods rather than the device attach. Also, print out 'edge' or 'level' in the IRQ announcement message. Reviewed by: dfr
* Don't use at_shutdown() now that we have new_bus which lets usmdodd1999-07-311-8/+11
| | | | | | specify a DEVICE_SHUTDOWN method instead. Reviewed by: me, since nobody else seems to run this hardware in -CURRENT
* Restore the pre-new_bus behavior of printing out the reserved resourcesmdodd1999-07-301-5/+95
| | | | | | during device announcement. (irq, ioport, maddr) Reviewed by: dfr, peter
* Alter the behavior of sys/kern/subr_bus.c:device_print_child()mdodd1999-07-291-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - device_print_child() either lets the BUS_PRINT_CHILD method produce the entire device announcement message or it prints "foo0: not found\n" Alter sys/kern/subr_bus.c:bus_generic_print_child() to take on the previous behavior of device_print_child() (printing the "foo0: <FooDevice 1.1>" bit of the announce message.) Provide bus_print_child_header() and bus_print_child_footer() to actually print the output for bus_generic_print_child(). These functions should be used whenever possible (unless you can just use bus_generic_print_child()) The BUS_PRINT_CHILD method now returns int instead of void. Modify everything else that defines or uses a BUS_PRINT_CHILD method to comply with the above changes. - Devices are 'on' a bus, not 'at' it. - If a custom BUS_PRINT_CHILD method does the same thing as bus_generic_print_child(), use bus_generic_print_child() - Use device_get_nameunit() instead of both device_get_name() and device_get_unit() - All BUS_PRINT_CHILD methods return the number of characters output. Reviewed by: dfr, peter
* Add a hook for a bus to detect child devices which didn't find drivers.dfr1999-07-111-2/+21
| | | | | | This allows the bus to print an informative message about unknown devices. Submitted by: Matthew N. Dodd <winter@jurai.net>
* Convert the if_fea (DEC FDDI) driver to newbus since it has been brokenpeter1999-07-101-400/+170
| | | | | | | for ages. This is the EISA wrapper for sys/dev/pdq/*. The pci bus driver is in sys/pci/if_fpa.c. Submitted by: "Matthew N. Dodd" <winter@jurai.net>
* Handle suspend/resume methodspeter1999-06-221-1/+3
| | | | Obtained from: Warner Losh <imp@freebsd.org>
* Fix a [start,end] vs [start,count] botch that corrupted the resourcepeter1999-05-241-3/+3
| | | | | | | | manager and prevented IOPort allocation beyond the first EISA slot from working. subr_rman.c should have trapped this on the way into the system rather than tripping over the wreckage. Head banged into wall repeatedly by: "Matthew N. Dodd" <winter@jurai.net>
* Don't detect an EISA bus unless we see a "card" there somewhere. An EISApeter1999-05-181-2/+10
| | | | | | | | motherboard will have a card for the "motherboard" on slot 0. eisa0: <EISA bus> on motherboard mainboard0: <ASU5101 (System Board)> at slot 0 on eisa0 This should stop the probe "detecting" an EISA bus everywhere that has a 'controller eisa0' line regardless of whether it's really there.
* Correct the comment for the last commit.gibbs1999-05-171-1/+1
| | | | | | | Clean up the handling of failure modes in our attach so we don't free resources twice. ahc_free() will do all of the work for us (as would be required by an unload event) so we only need to handle resources that the softc has not taken ownership of.
* Fix whitespace. Correct a comment.gibbs1999-05-171-15/+18
|
* Move the declaration of the interrupt type from the driver structuredfr1999-05-088-21/+12
| | | | to the BUS_SETUP_INTR call.
* Use consistant function definitions which also silences a warning.peter1999-05-061-20/+8
|
* Add a number of interrelated CAM feature enhancements and bug fixes.ken1999-05-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTE: These changes will require recompilation of any userland applications, like cdrecord, xmcd, etc., that use the CAM passthrough interface. A make world is recommended. camcontrol.[c8]: - We now support two new commands, "tags" and "negotiate". - The tags commands allows users to view the number of tagged openings for a device as well as a number of other related parameters, and it allows users to set tagged openings for a device. - The negotiate command allows users to enable and disable disconnection and tagged queueing, set sync rates, offsets and bus width. Note that not all of those features are available for all controllers. Only the adv, ahc, and ncr drivers fully support all of the features at this point. Some cards do not allow the setting of sync rates, offsets and the like, and some of the drivers don't have any facilities to do so. Some drivers, like the adw driver, only support enabling or disabling sync negotiation, but do not support setting sync rates. - new description in the camcontrol man page of how to format a disk - cleanup of the camcontrol inquiry command - add support in the 'devlist' command for skipping unconfigured devices if -v was not specified on the command line. - make use of the new base_transfer_speed in the path inquiry CCB. - fix CCB bzero cases cam_xpt.c, cam_sim.[ch], cam_ccb.h: - new flags on many CCB function codes to designate whether they're non-immediate, use a user-supplied CCB, and can only be passed from userland programs via the xpt device. Use these flags in the transport layer and pass driver to categorize CCBs. - new flag in the transport layer device matching code for device nodes that indicates whether a device is unconfigured - bump the CAM version from 0x10 to 0x11 - Change the CAM ioctls to use the version as their group code, so we can force users to recompile code even when the CCB size doesn't change. - add + fill in a new value in the path inquiry CCB, base_transfer_speed. Remove a corresponding field from the cam_sim structure, and add code to every SIM to set this field to the proper value. - Fix the set transfer settings code in the transport layer. scsi_cd.c: - make some variables volatile instead of just casting them in various places - fix a race condition in the changer code - attach unless we get a "logical unit not supported" error. This should fix all of the cases where people have devices that return weird errors when they don't have media in the drive. scsi_da.c: - attach unless we get a "logical unit not supported" error scsi_pass.c: - for immediate CCBs, just malloc a CCB to send the user request in. This gets rid of the 'held' count problem in camcontrol tags. scsi_pass.h: - change the CAM ioctls to use the CAM version as their group code. adv driver: - Allow changing the sync rate and offset separately. adw driver - Allow changing the sync rate and offset separately. aha driver: - Don't return CAM_REQ_CMP for SET_TRAN_SETTINGS CCBs. ahc driver: - Allow setting offset and sync rate separately bt driver: - Don't return CAM_REQ_CMP for SET_TRAN_SETTINGS CCBs. NCR driver: - Fix the ultra/ultra 2 negotiation bug - allow setting both the sync rate and offset separately Other HBA drivers: - Put code in to set the base_transfer_speed field for XPT_GET_TRAN_SETTINGS CCBs. Reviewed by: gibbs, mjacob (isp), imp (aha)
* These two drivers have not been converted for newbus eisa yet.peter1999-05-021-1/+4
|
* Typo, use SYS_RES_IRQ when releasing the irq resource, not SYS_RES_IOPORT.peter1999-04-241-2/+2
|
* ahb.c:gibbs1999-04-232-26/+18
| | | | | | | Synchronize malloc types for our softc. ahc_eisa.c: Sync to aic7xxx driver bus dma and new bus changes.
* Make bt driver work on eisa again.dfr1999-04-201-2/+2
| | | | Submitted by: Matthew N. Dodd <winter@jurai.net>
* GC some now unused (and #if 0) code.peter1999-04-191-321/+3
|
* EISA can (or will) be a child of the i386 nexus on non-PCI systems.peter1999-04-191-1/+2
|
* Set the bus description for EISA, like it is for ISA.peter1999-04-191-2/+3
|
* Implement an EISA new-bus framework. The old driver probe mechanismpeter1999-04-189-973/+1141
| | | | | | | | | had a quirk that made a shim rather hard to implement properly and it was just easier to convert the drivers in one go. The changes to the buslogic driver go beyond just this - the whole driver was new-bus'ed including pci and isa. I have only tested the EISA part of this so far. Submitted by: Doug Rabson <dfr@nlsystems.com>
* Staticize.eivind1999-04-111-2/+2
|
* Fix a typo.gibbs1999-03-231-2/+2
| | | | | PR: 10722 Submitted by: Chris Costello <chris@holly.dyndns.org>
* Ask the card where our interrupt is instead of attempting to use the EISAgibbs1999-03-081-85/+31
| | | | | | config info. On early revision cards (742a), the EISA register space, other than the location used to determine the address of the card's main command ports, is write only.
* Poll for bus reset completion instead of assuming that our interruptgibbs1999-03-051-2/+7
| | | | is enabled.
* Modify to deal with changes in the storage of user negotiation settings.gibbs1999-03-051-4/+6
|
* Correct test in poll loop for determining that the mailbox is free togibbs1999-01-281-7/+2
| | | | accept a new command.
* Fix parenthesization, but the code still looks wrong.dillon1999-01-281-2/+7
|
* Replace includes of <sys/kernel.h> with includes ofjdp1999-01-141-2/+2
| | | | | <sys/linker_set.h> in those files that use only the linker set definitions.
* Switch type of vxintr instead of using the previous casts.eivind1999-01-121-2/+2
| | | | Requested by: bde
* Silence warnings.eivind1999-01-121-2/+2
|
* The previous commit was bogus. malloc(..., M_WAITOK) should not bebde1999-01-011-2/+6
| | | | | | | used in device attach routines. At least for attaches at boot time, actually waiting, or actually failing for malloc(..., M_NOWAIT), are almost equally unlikely and harmless, but using M_WAITOK interferes with automatic detection of bogus M_WAITOK's.
* Staticize the overrun buffer so that they are not shared betweengibbs1998-12-221-4/+4
| | | | | | | cards of different bus types as each bus type may have a different bus mapping. Submitted by: Eivind Eklund <eivind@yes.no>
* Pull in new ccb_hdr list types.gibbs1998-12-151-1/+2
|
* malloc(xxx, yyy, M_WAITOK) does not fail. This probably explains whyeivind1998-12-091-6/+2
| | | | the bug in the check had never been discovered.
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-041-3/+3
| | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com>
* Bring back support for honoring the primary channel setting for twin channelgibbs1998-10-151-3/+12
| | | | | | | EISA adapters. This could have caused the system to find the wrong root disk. Reviewed by: J Wunsch <j@ida.interface-business.de>
* Hook up ahapoll so that dumps, synchronize cache commands or any othergibbs1998-10-091-1/+2
| | | | command that comes in through xpt_polled_action works correctly.
* Pass termination information via softc flags to the core driver. Thegibbs1998-10-091-13/+19
| | | | EISA probe missed out on this change in attach->core API.
* Use %p with (void *) casts to print pointers with printf.gibbs1998-09-171-4/+4
|
OpenPOWER on IntegriCloud