summaryrefslogtreecommitdiff
path: root/sys/dev/ray/if_ray.c
Commit message (Collapse)AuthorAgeFilesLines
* Most of this commit are minor changes whilst trying to make the driverDuncan Barclay2000-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. Notes: svn path=/head/; revision=59111
* Fix mbuf leaking - duh!Duncan Barclay2000-04-041-6/+9
| | | | Notes: svn path=/head/; revision=58998
* Use the right value for IFQ_MAXLEN and fix brokeness with gatewaying http ↵Duncan Barclay2000-03-311-438/+527
| | | | | | | | | | | from windows. Add signal strength cache and antenna selection (untested as firmware v4 doesn't return the antenna). KNF Notes: svn path=/head/; revision=58875
* For version 0.9 change DNET outputDuncan Barclay2000-03-211-1/+1
| | | | Notes: svn path=/head/; revision=58434
* Added user level updates and reading of parameters.Duncan Barclay2000-03-211-26/+136
| | | | Notes: svn path=/head/; revision=58433
* * add the start_join_net - doneDuncan Barclay2000-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 Notes: svn path=/head/; revision=57951
* Remove old hand crafted version of start_join_net for download.Duncan Barclay2000-03-111-51/+10
| | | | Notes: svn path=/head/; revision=57908
* Start to use ray_start_join_net (my old code removed on next checkin)Duncan Barclay2000-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. Notes: svn path=/head/; revision=57907
* Use the ccs update command mechanism for dowloading parameters on startupDuncan Barclay2000-03-091-112/+58
| | | | Notes: svn path=/head/; revision=57877
* Mega additions of NetBSD code - most of the NetBSD code is now in here, ifDuncan Barclay2000-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. Notes: svn path=/head/; revision=57834
* Fix cock up with test on start address.Duncan Barclay2000-03-081-8/+8
| | | | | | | This code sent out to alpha testers. Notes: svn path=/head/; revision=57814
* Added reset code and converted many panics into call to reset.Duncan Barclay2000-03-051-59/+201
| | | | | | | | | Finished ray_stop and ray_unload. A little more macro tidying. Notes: svn path=/head/; revision=57775
* Moved a lot of my inline comments to head of code and documentedDuncan Barclay2000-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! Notes: svn path=/head/; revision=57768
* Mostly notes and minor style changes whilst I was travelling.Duncan Barclay2000-03-031-46/+132
| | | | Notes: svn path=/head/; revision=57740
* Completed start/join code (well only infrastructure mode)Duncan Barclay2000-02-271-115/+577
| | | | | | | | | | | | | | | | | | | Added receive code and support for Webgear encapsulation. More debugging macros/functions. conditionalised timeout for start/join network conditonalised attribute/common memory hacks identified tracking code with XXX_TRACK sorted out initialistion of instance structure to some extent finished docuementing the start/join sequence Notes: svn path=/head/; revision=57540
* Snap shot check in.Duncan Barclay2000-02-261-169/+1087
| | | | | | | | | | | | The code doesn't compile (I'll do that in a minute), but functionally it gets to receveing the interrupt from the start or join net command. There is a lot of code to deal with the limitations of the PCCard memory mapping code - I'm changing some of it hence the check in to preserve something that worked. Notes: svn path=/head/; revision=57515
* Skeleton framework for network driver and initial probing of device.Duncan Barclay2000-02-201-0/+688
| | | | Notes: svn path=/head/; revision=57360
* Initial importDuncan Barclay2000-02-131-0/+0
Notes: svn path=/head/; revision=57190