summaryrefslogtreecommitdiffstats
path: root/sys/dev/ray
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove promisc_user, ray_reset and ray_reset_timo as they are not used. ↵dmlb2000-06-101-206/+120
| | | | | | | | | | | | Incidental remove of a timer too. Remove the runq_abort code. Get ray_detach working correctly. This is a very simple routine as it just wakes up sleeping processes. Note that anything woken has NO softc structure available! runq_add is suitably modified to detect a detach and return straight away. Due to ray_detach and its implications use a macro for adding things to the runq in user land.
* Cosmetic and capture a register dump _before_ I've downloaded values todmlb2000-06-041-3/+50
| | | | the card.
* As part of the IFF_RUNNING stuff, we've added an extra flag so callersdmlb2000-06-041-3/+9
| | | | can request that runq routines should check IFF_RUNNING before executing.
* Main changes are resurection of mutlicast code (jgibbs moved the stuff Idmlb2000-06-041-175/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | needed to add into ether_input) and finally sorting IFF_RUNNING through whole driver. As part of the IFF_RUNNING stuff, we've added an extra flag so callers can request that runq routines should check IFF_RUNNING before executing. Remove BPF taps as this is now done by ether_input. Resurrect multicast code, moving the multicast list stuff to the runq routine. Dump ray_promisc_user as all flag changes are now handled by ray_init, and add a couple of checks to ray_promisc. In uppparams_user, allow changes before the card is running (need to fix some breakage with _download here later). In addition, don't assume that the current n/w parameters are valid - they are only valid in the runq. Fix a nasty flag bug - runq_add cleared all the flags on the last command! Remove the hacks for setting the memory flags - problems were down to buggy versions of pccardd. For some reason pccardd only dtrt with the "right" debug_level.
* Remove unused ioctl lockingdmlb2000-05-282-90/+14
|
* Made RAY_COM_DUMP a real debug called RAY_DCOMdmlb2000-05-282-24/+25
| | | | unsed ioctl locking
* A bit of a messy monster.dmlb2000-05-281-395/+517
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simple stuff ------------ Split _download up so that the MIB settings are in their own functions. Made "tx completed but status is ..." a recoverable error Cut down verbosity of "unloaded" messages Moved ccs_free and com_runq from intr_ccs to ecf_done and runq_done to avoid embarasing mistakes and waits. Merged runq_add and runq_arr into one and called it runq_add Made RAY_COM_DUMP a real debug called RAY_DCOM Consistnet debugging around tsleeps. Use bus_activate_resource for attr/cm mapping, and set the flags correctly in the allocation routines (needs more hacks to sys/pccard/pcic.c) com_malloc is now seperated from the comq initialization. This was done whilst trying to set automatic variables for the comqs. Harder Stuff ------------ As part of the IFF_RUNNING fixes, remove the panic in runq if we are not running. Change, again, runq_add. This time we don't do any cleaning up if there were errors. This is so that callers get the chance to re-try (not that I ever see it being used). In runq_add, only sleep when there is something to sleep on! ioctl locking routines, stolen from awi.c but not used Hardest Stuff ------------- Dealing with serialing ioctls correctly means that we must QUEUE changes to IFF_RUNNING and check it in the QUEUED commands, not in the user commands. Whilst simple to state, it took a few hours of head scratching to get it right. The realisation was that I only have to guarantee that sub-commands from a single process are serialised and "atomic", and that they check the status of the interface flags when invoked and not when they are queued. Another way of looking at it, is that the driver's state is stored in the runq and the IFF_RUNNING flag. These must be changed together. What this means practically, is that IFF_RUNNING is set after we have started/joined/associated with a network. And it is cleared by ray_stop via the runq so that unfinsished commands are not distrupted. I still have to fix up promisc, upp/repparams and mcast. Oh yeah, stop is essentially a noop in that it only changes IFF_RUNNING
* Moved a bit of resource allocation from probe to attach based on feedbackdmlb2000-05-231-122/+109
| | | | | | | | in -hackers on the correct driver structure. Started to tidy up _detach and _stop. Added the comq array stuff into mcast.
* MFRELENG_3dmlb2000-05-211-187/+625
|
* MFRELENG_3dmlb2000-05-211-10/+23
|
* MFRELENG_3dmlb2000-05-211-18/+28
|
* Newbusify resource allocation.dmlb2000-05-111-196/+234
| | | | | | | | Have OLDCARD version of the remapping. Remove BPF conditionals. Remove ISA/3.x stuff and add -current stuff.
* Remove ISA/3.x stuff and add -current stuffdmlb2000-05-111-23/+25
| | | | Use device_printf.
* Use device_printf.dmlb2000-05-111-3/+3
|
* Move a couple fo things around to be nicer for -currentdmlb2000-05-101-168/+180
| | | | | | | | | | | | Move to using /sys/dev/ray for driver Backport -current ray_res code - most are stubs. Make ray_attr stuff look like currents layout. Make attribute memory access use a macro and ripple through. Drop FIXUP as we always need it
* Move a couple fo things around to be nicer for -currentdmlb2000-05-101-43/+60
| | | | | | | | A few more () in macros Make attribute memory access use a macro and ripple through. Drop FIXUP as we always need it
* Add a STOP debug flag.dmlb2000-05-101-15/+19
| | | | | | | | Fix DHEX8 to use SRAM_READ_1 Tweak printing statements to generate less diffs with -current version. Adda a few () around macro variables.
* Move _detach to be underneath _attach.dmlb2000-05-071-182/+155
| | | | | | | Move the code that checks the card into _probe and out of _attach and shuffle a couple of things around in attach. Set ifp in the variable block - catches unused variables.
* Move variables to if_rayvar.hdmlb2000-05-071-218/+2
|
* Split out structures to make it a bit easier to find my way around anddmlb2000-05-071-0/+248
| | | | be more like sys/dev coding.
* Sync with an early version of the -current code. Mainly a tidy updmlb2000-05-071-118/+80
| | | | | | | | | | | | | | | | | of some function names, dropping the ISA bits that were never used and removing __P We've renamed the _pccard_ stuff as nothing else probes or attaches. In the next commit we will move some routines around and split out some of the structure definitions to another file. I've dropped the SYSCTL as I never got it working. APM is gone too as it is broken. Note, that the attr_read/write will be in both this and NEWCARD/NEWBUS so I've moved the prototypes to the right place. Add a few casts.
* Cosmetic to make errors messages look similar.dmlb2000-04-241-4/+4
|
* Moved debugging definitions to a header file.dmlb2000-04-241-1313/+1042
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed NETBSDTX spares. Renamed a load of functions - specifcally start -> tx init has download, sj and assoc as sub-functions report_params and update params move to repparams/upparams Tidied up old #define's Got rid of old DPRINTF, made printf's RAY_PRINTF and panic's RAY_PANIC All code KNF Removed checking the ECF_TO_HOST area in ray_init - this gets hosed when someone updates/read a parameter from the card so causes unneeded grief. This required moving the tib check into ray_attach. Changed handling of interface flags in ioctl so that promiscous mode changes are only done as needed. Sequences of comq entries can be added to an array and automatically dealt with - used in ray_init_user and others. Moved IFF_RUNNING checks from the comq commands to com_runq - still not sure what to do so we PANIC - will be fixed. ray_sj now checks to see if any of the parameters it can update can be updated. ray_sj_done now updates parameters to the current n/w set if we changed them earlier. I was being a bit thick in earlier comments as to why this check was done - the ECF never changes the parameters. Assocication with APs is handled outside of ray_sj - need to add WEP stuff if I ever get my hands on an AP. ray_stop, ray_unload and ray_reset are currently broken - reset isn't used anyway. ray_tx_XXX and ray_rx only have cosmetic changes. Interrupt handler now gets command out of ccs. This is so ray_intr_ccs and ray_intr_rcs don't need to remap CM (I'm trying to roll things up a bit as it must be slowing us down). ray_intr_ccs just vectors commands to functions or error checks - a jump table could replace it in ray_intr. Ditto for ray_intr_rcs. mcast is currently broken - I need to do more work for ALLMULTI etc. This is reasonably easy to fix becuase of the comq array stuff. Added a few more checks into repparams so that it is firmware version aware. It also uses the new comq framework. Parameter updating is also much better with the update parameter return routine re-worked. Added a couple of runq entry helper functions - one that malloc's a new entry and fills it in with sensible defaults and another that adds and runs a seqencue of entries.
* Bit mask definitions for firmware versioning.dmlb2000-04-241-74/+89
| | | | | Added versioning info to the MIB sizes array so that both raycontrol and if_ray have a better chance of not sending duff data to the ECF.
* Initial import.dmlb2000-04-241-0/+126
|
* Make the moved about version compile and rundmlb2000-04-241-2/+6
|
* Moved functions around so that they are grouped a little more sensibly.dmlb2000-04-221-1012/+1016
|
* Functional driver with new command queue in place.dmlb2000-04-211-1278/+1068
| | | | | | | | | | | | | | | | | | | | | | | 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
* A messy commit that checkpoints the driver (not known to actually work)dmlb2000-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
* Merged in a load of information from the card documentation - not finished yet.dmlb2000-04-151-121/+338
|
* A few comment tidy-ups.dmlb2000-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.
* Most of this commit are minor changes whilst trying to make the driverdmlb2000-04-091-217/+375
| | | | | | | | | | | | 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.
* Fix mbuf leaking - duh!dmlb2000-04-041-6/+9
|
* Add signal strength cache structures.dmlb2000-03-311-2/+14
|
* Use the right value for IFQ_MAXLEN and fix brokeness with gatewaying http ↵dmlb2000-03-311-438/+527
| | | | | | | | from windows. Add signal strength cache and antenna selection (untested as firmware v4 doesn't return the antenna). KNF
* For version 0.9 change DNET outputdmlb2000-03-211-1/+1
|
* Added user level updates and reading of parameters.dmlb2000-03-212-36/+266
|
* Typo.dmlb2000-03-211-2/+2
|
* * add the start_join_net - donedmlb2000-03-121-129/+178
| | | | | | | | | | | | | | | | | | | | * i needed it anyway * remove startccs and startcmd - done * as those were used for the NetBSD start timeout * multicast - done but UNTESTED * I don't have the ability/facilty to test this * rxlevel - done * stats reported via raycontrol * getparams ioctl - done * reported via raycontrol * start_join_done needs a restart in download_done - done * now use netbsd style start up removed spare timerh implemented start_assoc in ray_ccs_done bit more knfing
* structure for error counters addeddmlb2000-03-121-7/+18
|
* Use ssid length from 80211.hdmlb2000-03-121-4/+136
| | | | | | moved and extended ioctl's added string and size definitions for raycontrol
* Remove old hand crafted version of start_join_net for download.dmlb2000-03-111-51/+10
|
* Start to use ray_start_join_net (my old code removed on next checkin)dmlb2000-03-111-174/+216
| | | | | | | | requires current and desired network parameters, so I have created a network parameter structure and used two on them in the softc. This gives a bit of room of expansion. Re-wrote the update check in _net to work with this. Tidyed up softc due to above. Removed startccs and startcmd as they were only used by NetBSDs startup timeout.
* Use the ccs update command mechanism for dowloading parameters on startupdmlb2000-03-091-112/+58
|
* Mega additions of NetBSD code - most of the NetBSD code is now in here, ifdmlb2000-03-081-832/+1785
| | | | | | | | | | | | | | | | | | | | | | | not actually used yet. This created a lot of prototypes. I moved code around so that the functions are in the same order as NetBSD - this helps diff a lot. Things that are missing are the TX routine and ifmedia stuff and ioctls Not all of the stuff is enabled - we are missing calls in ccs_done and ioctl. Promiscious mode is working. Am almost ready to use the NetBSD start up routine - essentially all I need to do is not use a seperate timer to call download_timo. Other misc. things: callout_stop is a newish feature for cancelling a timer without argument checking it. tried to add a sysctl knob but it doesn't work in the module enabled infrastructure code to call netbsd bits.
* Fix cock up with test on start address.dmlb2000-03-081-8/+8
| | | | This code sent out to alpha testers.
* Added reset code and converted many panics into call to reset.dmlb2000-03-051-59/+201
| | | | | | Finished ray_stop and ray_unload. A little more macro tidying.
* Minor tidy up.dmlb2000-03-051-2/+2
|
* Moved a lot of my inline comments to head of code and documenteddmlb2000-03-051-378/+773
| | | | | | | | | | | | | | | | | | | | card configuration hassles. Added a TODO list so I don't forget to finish stuff. Tidyed up a lot of XXX. Tidy'd and documented debugging - all DPRINTF have a debug level associated. RAY_DEBUG = 1, will log packet errors. #if protect common memory hacking Don't rely on pccardd for common memory settings. Added a simple transmit mode - reasonable performance but not great. Will do a version of the NetBSD chained buffers soon. Yup we have two way transmisson! Fix a stupid bug in the common memory code - the ioctl call was hidden behind a debug test!
* Tidy up.dmlb2000-03-051-100/+140
| | | | Add TX tib structure.
OpenPOWER on IntegriCloud