aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Reoganize/update the SysKonnect driver:Bill Paul2000-04-223-160/+512
| | | | | | | | | | | | | | | | | | | | | - Break out the support for the XMAC II's PHY into an miibus driver. - Reorganize the probe/attach stuff using newbus. Each XMAC is now attached to the parent GEnesis controller using newbus. This is necessary since each XMAC must also have an attached miibus, and the miibus read/write register routines need to be able to get at the softc struct for each XMAC, not the one for the parent controller. This allows me to get rid of the grotty code I added for selecting the unit numbers for the ifnet interfaces: the unit numbers are now derived from the newbus-assigned unit numbers, which should track with the ifnet interface numbers. I think. At the very least, there should never be any collisions. - Add support for the SK-9821 and SK-9822 1000baseTX adapters. Special thanks to SysKonnect for loaning me two adapters for testing. Notes: svn path=/head/; revision=59478
* Add PHY drivers for the XMAC II's internal PHY and the Broadcom BCM5400Bill Paul2000-04-224-0/+1138
| | | | | | | | 1000baseTX PHY. These will be used by the SysKonnect gigabit ethernet driver shortly. Notes: svn path=/head/; revision=59477
* RegenerateBill Paul2000-04-221-2/+10
| | | | Notes: svn path=/head/; revision=59476
* Add entries for the XMAC II's internal PHY and the Broadcom BCM5400Bill Paul2000-04-221-1/+7
| | | | | | | 1000baseTx PHY. Notes: svn path=/head/; revision=59475
* Now that we fixed the isp_sendmarker botch, we can now do initial busMatt Jacob2000-04-211-4/+1
| | | | | | | | resets for ULTRA2/ULTRA3 cards again (which were turned off really because of a botch for dual bus configurations). Notes: svn path=/head/; revision=59472
* Functional driver with new command queue in place.Duncan Barclay2000-04-211-1277/+1067
| | | | | | | | | | | | | | | | | | | | | | | | | | Working download and start/join network. What's nice is that I didn't touch TX or RX code at all. Not fully done yet - stubs for assoc, cast, promisc and user param updating. I can't work out the "nicest" way to get the mcast and promisc interactions sorted without needing to abort runq commands half way through. And, as mcast/promisc used elsewhere I want to get this right. Other stuff Fancy new debugging with __FUNCTION__ and __LINE__. Lots of panic's inserted until I check some stuff out. Removed all of the old scheduler. Removed start join timeout as I don't need it. Removed the promiscuous broadcast code that waas ifdef'd out. New CCS allocation Notes: svn path=/head/; revision=59467
* Roll minor version. Increase size (and add defines for) topology storage.Matt Jacob2000-04-211-2/+9
| | | | Notes: svn path=/head/; revision=59454
* Some minor tweaklets.Matt Jacob2000-04-213-21/+44
| | | | Notes: svn path=/head/; revision=59453
* Add in the now required malloc.h include. I guess somebodyMatt Jacob2000-04-211-0/+1
| | | | | | | was busy hackin' w/o checking kernel compiles. Notes: svn path=/head/; revision=59452
* Pick up topology more sanely at f/w startup. Change the restrictions ofMatt Jacob2000-04-211-22/+34
| | | | | | | | | | where we can have targets (based on topology). Much more importantly, make sure all mods to isp_sendmarker or |= so we don't lose the marking of a bus that needs to have a marker sent for it. Notes: svn path=/head/; revision=59451
* Update (finally) 1.15.37 to 1.19.03 for the 2100. This allows us to notMatt Jacob2000-04-211-20026/+23524
| | | | | | | | | | require full logins after a LIP, which always led to loop resets, and various other perturbations. Update 2200 f/w from 2.01.00 release to 2.01.09 release. Notes: svn path=/head/; revision=59450
* One minor bugfix:Mike Smith2000-04-202-4/+19
| | | | | | | | | | | | | | | - Free resources in all the possible attachment failure cases. One critical bugfix: - Fix a race where it was possible to get out of synch with the log messages from the controller, if the controller hung up for any period of time (eg. while resetting a SCSI bus). This would result in an endless string of console errors, bringing the machine to a halt. Notes: svn path=/head/; revision=59447
* o Preliminary support for mapping the CIS by the driver.Warner Losh2000-04-201-4/+6
| | | | | | | | | | | o Modify xe driver to use this. There's still some issues with this code, so xe can't map the cis just yet. I'm thinking about how to resolve the issue. pccard_nbk's pccard_alloc_resource is getting in the way. Notes: svn path=/head/; revision=59430
* Remove bogus commentWarner Losh2000-04-201-2/+0
| | | | Notes: svn path=/head/; revision=59427
* Remove ~25 unneeded #include <sys/conf.h>Poul-Henning Kamp2000-04-1948-53/+0
| | | | | | | Remove ~60 unneeded #include <sys/malloc.h> Notes: svn path=/head/; revision=59391
* OK. Next step: we read in CIS.Warner Losh2000-04-198-217/+34
| | | | | | | | | | | | | | I've done this by having requests to allocate memory propigate up the tree. We'll see how well this works and reevaluate if it isn't working well. Also initialize ptr in the tuple. As well as minor reorg of memory allocation. Likely need to do similar things for I/O when the time comes. I've move all defines from pccardchip.h into pccardvar.h and eliminated pccardchip.h. Notes: svn path=/head/; revision=59389
* try the fix from creative bugzilla for nmi problemCameron Grant2000-04-181-2/+2
| | | | | | | Obtained from: creative labs bugzilla Notes: svn path=/head/; revision=59375
* Remove unneeded <sys/buf.h> includes.Poul-Henning Kamp2000-04-1819-19/+0
| | | | | | | | Due to some interesting cpp tricks in lockmgr, the LINT kernel shrinks by 924 bytes. Notes: svn path=/head/; revision=59368
* Provide mem* for compat with NetBSD to fix LINTWarner Losh2000-04-172-3/+15
| | | | Notes: svn path=/head/; revision=59339
* When in infrastructure mode, use address 3 from the 802.11 header as theBill Paul2000-04-171-2/+7
| | | | | | | | | | | source address when receiving frames (and keep using address 2 when in pseudo-IBSS mode). This is apparently necessary in order to obtain the true MAC address of the sending station which is needed for PPPoE. Patch supplied by: Blaz Zupan <blaz@amis.net> Notes: svn path=/head/; revision=59328
* more mmap fixesCameron Grant2000-04-173-35/+30
| | | | Notes: svn path=/head/; revision=59324
* make drivers start at beginning of buffer when triggered - improves mmap.Cameron Grant2000-04-174-14/+32
| | | | | | | | | not all tested. not sure about aureal.c or csapcm.c Notes: svn path=/head/; revision=59323
* Remove unloaded printf. We do this now in the newbus layer.Warner Losh2000-04-173-3/+0
| | | | Notes: svn path=/head/; revision=59313
* Second patch that prepares for the addition of theGerard Roudier2000-04-161-300/+302
| | | | | | | | | | | | | | | multi-firmware support. This patch just changes numerous names in the driver sources and is actually nilpotent. This has been checked by comparing the generated assembly code. The names that have been changed are related to the script names. They were named `script' and `script H'. They are now named respectively `script A' and `script B'. Notes: svn path=/head/; revision=59292
* Remove debugging codeRoger Hardiman2000-04-161-1/+1
| | | | Notes: svn path=/head/; revision=59278
* Fix typo in interrupt handling code and fix bug in setting of adelayRoger Hardiman2000-04-164-14/+24
| | | | Notes: svn path=/head/; revision=59277
* Make vinum compile again using the "cast to buf" workaround.Poul-Henning Kamp2000-04-163-20/+21
| | | | | | | Approved by: grog Notes: svn path=/head/; revision=59276
* - Define registers as offsets from register base rather than offsets fromMatthew N. Dodd2000-04-162-14/+10
| | | | | | | | | | EISA slot base. - Remove unused IOPORT resource. Reviewed by: jlemon Notes: svn path=/head/; revision=59273
* Include <sys/bus.h>, which is needed after Doug's latest object changes.Warner Losh2000-04-162-0/+4
| | | | Notes: svn path=/head/; revision=59272
* A messy commit that checkpoints the driver (not known to actually work)Duncan Barclay2000-04-151-236/+330
| | | | | | | | | | | | | | before I rip out the scheduler - whilst v. nice 'n all, it is doing the wrong job. We need something that sends commands to the card atomically so dhcp etc. works right. I've renamed and moved a lot of the scheduler code so that it is all in one place and all starts with ray_cmd_ ray_stop has some debugging crap left in - to be deleted rsn Notes: svn path=/head/; revision=59264
* Merged in a load of information from the card documentation - not finished yet.Duncan Barclay2000-04-151-120/+337
| | | | Notes: svn path=/head/; revision=59263
* A few comment tidy-ups.Duncan Barclay2000-04-151-13/+27
| | | | | | | | | | Add a %b printf descriptor Change the START command to DOWNLOAD to avoid confusion with start as in transmitting a packet. Notes: svn path=/head/; revision=59262
* First patch that prepares for the adding of multi-firmwareGerard Roudier2000-04-151-313/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | support. Changes are rather simplifications of the SCRIPTS interface (prior to complexifying it again;) ), dead code removes and comment fixes. Code removed: - Handling of kernel variables referenced from SCRIPTS. - Handling of selection without ATN. Slightly rewritten: - Handling of illegal phase (4/5) and data overrun conditions. Simplifications: - Extended error flag and bits now only set from the C code. - Move the extended error status (xerr_status) and nego status (nego_status) outside the data structure accessed by SCRIPTS (struct dsb). - Get rid of the script status field (scr_st). - Only patch SCR_NO_OP SCRIPTS instructions to adapt SCRIPTS to actual chip capabilities. Cosmetic changes: - Miscellaneous comments in SCRIPTS. - FreeBSD_4_Bus define replaced by FreeBSD_Bus_Io_Abstraction. Notes: svn path=/head/; revision=59252
* Update to driver 2.11.Roger Hardiman2000-04-155-8/+26
| | | | | | | | Driver now compiles on FreeBSD/Alpha, but still requires testing. Remove a printf, submitted by Chris D. Faulhaber <jedgar@fxp.org> Notes: svn path=/head/; revision=59250
* Complete the bio/buf divorce for all code below devfs::strategyPoul-Henning Kamp2000-04-1523-422/+429
| | | | | | | | | | | | | Exceptions: Vinum untouched. This means that it cannot be compiled. Greg Lehey is on the case. CCD not converted yet, casts to struct buf (still safe) atapi-cd casts to struct buf to examine B_PHYS Notes: svn path=/head/; revision=59249
* make mmap sort-of work. there seem to be interactions with certain hwCameron Grant2000-04-155-154/+172
| | | | | | | | | | | | | drivers, so still work in progress. do various mmap-related ioctls right. improve blocksize control. bits of cleanup. Notes: svn path=/head/; revision=59246
* Change && to || in probe routine so that the mlphy driver doesn'tBill Paul2000-04-141-1/+1
| | | | | | | | | | incorrectly attach itself to ThunderLAN adapters which happen to have a PHY who's model number happens out to be 0. Problem reported by: Peter L. Thomas <Pete@painless-computing.com> Notes: svn path=/head/; revision=59235
* Add vendor/device codes for SmartBridges SmartLink USB ethernet adapterBill Paul2000-04-141-0/+1
| | | | | | | | | | (which is actually a CATC Netmate). Gee. I don't know why people make such a fuss over supporting USB ethernet NICs. This is easier than collecting graft. Notes: svn path=/head/; revision=59234
* Regenerate.Bill Paul2000-04-142-2/+18
| | | | Notes: svn path=/head/; revision=59233
* Add entry for SmartBridges SmartLink USB ethernet adapter.Bill Paul2000-04-141-0/+4
| | | | Notes: svn path=/head/; revision=59232
* Change the maximum I/O transfer size to DFLTPHYS. This should fixJonathan Lemon2000-04-131-1/+1
| | | | | | | write corruption that some users were experiencing. Notes: svn path=/head/; revision=59213
* - Add an additional call to eisa_add_iospace() so we get the right IOPORTMatthew N. Dodd2000-04-131-1/+2
| | | | | | | | | | | | | in attach. - Change a EISA_CHANNEL_CLEAR to EISA_CHANNEL_BUSY in ida_v1_submit(). This may fix the problem with EISA IDA adapters though we have not heard back from testers yet. Reviewed by: jlemon Notes: svn path=/head/; revision=59209
* checkpoint latest pccard/pcic hacking:Warner Losh2000-04-137-165/+143
| | | | | | | | | | | | | | | | | | | | | | | o Eliminate cross calls between the devices. Instead move to using the newbus messaging system. Added three new card calls: attach_card, detach_card, get_type. o Eliminate interrupt routine in pccard we never use. o Move from deactivate to detach for removing cards. o Start mapping CIS memory, but it is broken and causes panics. At least it is closer to working than before. o Eliminate struct device everywhere. It was bogus. o Initialize softc for pccard device so we have valid pointers to ourselves. o Implement routine to find the pcic ivar for a child device of the pccard so we can use it to talk to the pcic hardware. o Lots of minor tiding up. This version now panics when we try to read the CIS. The next batch of work to make this work is what was outlined in my posting to mobile about resource allocation and such. Notes: svn path=/head/; revision=59193
* - Release allocated resources on error.Yoshihiro Takahashi2000-04-122-144/+163
| | | | | | | | | Reported by YAMAMOTO Shigeru <shigeru@iij.ad.jp> - Clean up some code. - Set the value of rid variable to PCI_BASEADR0(== 0x10) (adv_pci.c). Notes: svn path=/head/; revision=59171
* 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
* Driver is now using miibus, and newbus.Semen Ustimenko2000-04-123-1100/+674
| | | | | | | PR: kern/17601 Notes: svn path=/head/; revision=59164
* Added code to handle QS6612 PHY as standard NS PHYSemen Ustimenko2000-04-111-5/+8
| | | | | | | for support of tx driver. Notes: svn path=/head/; revision=59153
* Add features required for basic userland management utility:Mike Smith2000-04-115-135/+235
| | | | | | | | | | | | | | | | | - implement user-initiated background drive rebuild - implement user-initiated background consistency check - log controller-initiated background rebuild/check operations Try to fix the elusive "invalid log operation" bug, and panic if we do hit this one in the hopes of getting better information. Tidy up diagnostic messages. Try to use disk_create/disk_destroy correctly. This isn't working properly yet, but it's not clear whose fault that is. Notes: svn path=/head/; revision=59136
* Most of this commit are minor changes whilst trying to make the driverDuncan Barclay2000-04-091-216/+374
| | | | | | | | | | | | | | | robust enough to work with dhcp. Essentially the driver returns to userland before certain commands have been completed by the card. I'm trying to work out the best way to fix this. There are very minor functional changes, most of this is debugging. Rework of debugging so a bit mask is used and re-allocation around the place. Tried to protect ray_init with a tsleep until the network has been joined. I think this is only a partial fix as we also update the mcast and promisc values. Notes: svn path=/head/; revision=59111
* Add support for ATA66 on newer revisions of the VIA 82C596Søren Schmidt2000-04-093-27/+40
| | | | Notes: svn path=/head/; revision=59103