summaryrefslogtreecommitdiff
path: root/sys/dev/ray
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagrelease/6.2.0_cvscvs2svn2007-01-115-5/+5
| | | | | | 'RELENG_6_2_0_RELEASE'. This commit was manufactured to restore the state of the 6.2-RELEASE image.
* Merge linux_ioctl.c:1.128 svr4_sockio.c:1.17 altq_cbq.c:1.3 if_oltr.c:1.38Robert Watson2005-08-252-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if_pflog.c:1.14 if_pfsync.c:1.21 if_an.c:1.70 if_ar.c:1.72 if_arl.c:1.11 amrr.c:1.10 onoe.c:1.10 if_ath.c:1.101 awi.c:1.41 if_bfe.c:1.27 if_bge.c:1.93 if_cm_isa.c:1.7 smc90cx6.c:1.16 if_cnw.c:1.20 if_cp.c:1.25 if_cs.c:1.42 if_ct.c:1.26 if_cx.c:1.46 if_ed.c:1.256 if_em.c:1.68 if_en_pci.c:1.37 midway.c:1.66 if_ep.c:1.143 if_ex.c:1.58 if_fatm.c:1.20 if_fe.c:1.93 if_fwe.c:1.38 if_fwip.c:1.8 if_fxp.c:1.244 if_gem.c:1.33 if_hatm.c:1.25 if_hatm_intr.c:1.20 if_hatm_ioctl.c:1.13 if_hatm_rx.c:1.10 if_hatm_tx.c:1.14 if_hme.c:1.39 if_ie.c:1.104 if_ndis.c:1.101 if_ic.c:1.24 if_ipw.c:1.10 if_iwi.c:1.10 if_ixgb.c:1.13 if_lge.c:1.41 if_lnc.c:1.113 if_my.c:1.31 if_nge.c:1.77 if_nve.c:1.10 if_owi.c:1.12 if_patm.c:1.9 if_patm_intr.c:1.6 if_patm_ioctl.c:1.10 if_patm_tx.c:1.10 pdq_ifsubr.c:1.28 if_plip.c:1.38 if_ral.c:1.12 if_ral_pci.c:1.2 if_ray.c:1.81 if_rayvar.h:1.22 if_re.c:1.49 if_sbni.c:1.21 if_sbsh.c:1.14 if_sn.c:1.48 dp83932.c:1.21 if_snc_pccard.c:1.9 if_sr.c:1.70 if_tx.c:1.91 if_txp.c:1.33 if_aue.c:1.92 if_axe.c:1.32 if_cdce.c:1.8 if_cue.c:1.59 if_kue.c:1.66 if_rue.c:1.23 if_udav.c:1.16 if_ural.c:1.12 if_vge.c:1.16 if_vx.c:1.58 if_wi.c:1.185 if_wi_pci.c:1.26 if_wl.c:1.68 if_xe.c:1.60 if_xe_pccard.c:1.30 if_el.c:1.68 i4b_ipr.c:1.35 i4b_isppp.c:1.31 kern_poll.c:1.20 bridge.c:1.94 bridgestp.c:1.4 if_arcsubr.c:1.27 if_atm.h:1.24 if_atmsubr.c:1.40 if_bridge.c:1.16 if_ef.c:1.35 if_ethersubr.c:1.196 if_faith.c:1.37 if_fddisubr.c:1.100 if_fwsubr.c:1.14 if_gif.c:1.54 if_gre.c:1.34 if_iso88025subr.c:1.70 if_loop.c:1.107 if_ppp.c:1.106 if_spppsubr.c:1.121 if_tap.c:1.57 if_tun.c:1.154 if_vlan.c:1.80 ppp_tty.c:1.67 ieee80211_ioctl.c:1.32 atm_if.c:1.31 ng_eiface.c:1.33 ng_ether.c:1.50 ng_fec.c:1.19 ng_iface.c:1.44 ng_sppp.c:1.9 ip_carp.c:1.30 ip_fastfwd.c:1.30 in6.c:1.53 nd6_nbr.c:1.31 natm.c:1.40 if_dc.c:1.162 if_de.c:1.168 if_pcn.c:1.72 if_rl.c:1.154 if_sf.c:1.84 if_sis.c:1.135 if_sk.c:1.108 if_ste.c:1.86 if_ti.c:1.109 if_tl.c:1.101 if_vr.c:1.106 if_wb.c:1.81 if_xl.c:1.194 from HEAD to RELENG_6: Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE and IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to ifnet.if_drv_flags. Device drivers are now responsible for synchronizing access to these flags, as they are in if_drv_flags. This helps prevent races between the network stack and device driver in maintaining the interface flags field. Many __FreeBSD__ and __FreeBSD_version checks maintained and continued; some less so. Reviewed by: pjd, bz Approved by: re (scottl) Notes: svn path=/stable/6/; revision=149443
* Merge if_ath.c:1.99 awi.c:1.39 if_bfe.c:1.26 if_bge.c:1.92 if_ed.c:1.255Robert Watson2005-08-241-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | if_em.c:1.67 if_ex.c:1.57 if_fe.c:1.92 if_fxp.c:1.242 if_gem.c:1.32 if_hme.c:1.38 if_ie.c:1.103 if_ndis.c:1.100 if_ixgb.c:1.12 if_lge.c:1.40 if_lnc.c:1.112 if_my.c:1.30 if_nge.c:1.76 if_nve.c:1.9 if_owi.c:1.11 pdq_ifsubr.c:1.27 if_ray.c:1.80 if_re.c:1.47 if_sn.c:1.47 dp83932.c:1.20 if_tx.c:1.90 if_txp.c:1.32 if_aue.c:1.91 if_axe.c:1.31 if_cue.c:1.58 if_kue.c:1.65 if_rue.c:1.22 if_udav.c:1.15 if_vge.c:1.15 if_wi.c:1.182 if_wl.c:1.67 if_xe.c:1.58 if_dc.c:1.161 if_de.c:1.167 if_pcn.c:1.70 if_rl.c:1.153 if_sf.c:1.83 if_sis.c:1.134 if_sk.c:1.107 if_ste.c:1.85 if_ti.c:1.108 if_tl.c:1.100 if_vr.c:1.105 if_wb.c:1.80 if_xl.c:1.193 from HEAD to RELENG_6: Modify device drivers supporting multicast addresses to lock if_addr_mtx over iteration of their multicast address lists when synchronizing the hardware address filter with the network stack-maintained list. Problem reported by: Ed Maste (emaste at phaedrus dot sandvine dot ca> Approved by: re (scottl) Notes: svn path=/stable/6/; revision=149422
* Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis2005-06-102-28/+38
| | | | | | | | | | | | | | | | | | | | | | | struct ifnet or the layer 2 common structure it was embedded in have been replaced with a struct ifnet pointer to be filled by a call to the new function, if_alloc(). The layer 2 common structure is also allocated via if_alloc() based on the interface type. It is hung off the new struct ifnet member, if_l2com. This change removes the size of these structures from the kernel ABI and will allow us to better manage them as interfaces come and go. Other changes of note: - Struct arpcom is no longer referenced in normal interface code. Instead the Ethernet address is accessed via the IFP2ENADDR() macro. To enforce this ac_enaddr has been renamed to _ac_enaddr. - The second argument to ether_ifattach is now always the mac address from driver private storage rather than sometimes being ac_enaddr. Reviewed by: sobomax, sam Notes: svn path=/head/; revision=147256
* Make a bunch of malloc types static.Poul-Henning Kamp2005-02-102-2/+1
| | | | | | | Found by: src/tools/tools/kernxref Notes: svn path=/head/; revision=141616
* Move the $NetBSD$ tag to the top of the file, per standard NetBSDWarner Losh2005-02-061-5/+5
| | | | | | | | | | practice (which we seem to mostly follow in the tree). Move the $FreeBSD$ tag to its more proper place after all copyright and license notices. Add '-' to the copyright notice for Christian E. Hopps so my copyright script picks it up. Notes: svn path=/head/; revision=141419
* ccs is a size_t. RAY_CCS_INDEX takes ccs and does math on it,Warner Losh2005-02-061-2/+2
| | | | | | | | | | | | | | | | | | resulting in a size_t due to C's rules of arithmetic. Rather than bogusly cast the result to a uint8_t, fix the printf format specifier to have a 'z' modifier which tells the compiler that the sizes really do match. It turns out that change 1.75 was incorrect to assume that this 'really' was a 8bit quantity. It isn't. Although the hardware appears to limit things to < 256, it would be a bug that should be caught by debug printf it it were. Casting it to uint8_t would have lost this useful information. Aslo add 'z' to a nearby debug statement that's never compiled in. Notes: svn path=/head/; revision=141416
* 64-bit clean fixes: Use %zx in preference to %x to print size_t items.Warner Losh2005-01-271-2/+2
| | | | | | | Cast a byte to uint8_t before printing. Notes: svn path=/head/; revision=140885
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-065-5/+5
| | | | Notes: svn path=/head/; revision=139749
* Update for net80211 changes.Sam Leffler2004-12-082-3/+41
| | | | Notes: svn path=/head/; revision=138572
* Since if_ray doesn't contain locking or run with INTR_MPSAFE, markRobert Watson2004-08-131-1/+2
| | | | | | | the interface as IFF_NEEDSGIANT so if_start is run holding Giant. Notes: svn path=/head/; revision=133696
* Add missing <sys/module.h> includesPoul-Henning Kamp2004-05-301-0/+1
| | | | Notes: svn path=/head/; revision=129879
* We don't need to initialize if_output, ether_ifattach() does itMaxime Henrion2004-05-231-1/+0
| | | | | | | for us. Notes: svn path=/head/; revision=129616
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-171-2/+2
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* fix warnings. NULL -> 0Alfred Perlstein2003-12-241-4/+4
| | | | Notes: svn path=/head/; revision=123816
* Replace the if_name and if_unit members of struct ifnet with new membersBrooks Davis2003-10-311-2/+1
| | | | | | | | | | | | | | | | if_xname, if_dname, and if_dunit. if_xname is the name of the interface and if_dname/unit are the driver name and instance. This change paves the way for interface renaming and enhanced pseudo device creation and configuration symantics. Approved By: re (in principle) Reviewed By: njl, imp Tested On: i386, amd64, sparc64 Obtained From: NetBSD (if_xname) Notes: svn path=/head/; revision=121816
* Use __FBSDID().David E. O'Brien2003-08-241-1/+3
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* update to new 802.11 supportSam Leffler2003-06-281-2/+1
| | | | Notes: svn path=/head/; revision=116995
* update for new 802.11 supportSam Leffler2003-06-281-0/+1
| | | | Notes: svn path=/head/; revision=116951
* Deprecate machine/limits.h in favor of new sys/limits.h.Alexander Kabaev2003-04-291-2/+1
| | | | | | | | | | Change all in-tree consumers to include <sys/limits.h> Discussed on: standards@ Partially submitted by: Craig Rodrigues <rodrigc@attbi.com> Notes: svn path=/head/; revision=114216
* Retire some misleading comments and explain why we need to keep a copyDuncan Barclay2003-03-051-10/+8
| | | | | | | of parameters written to the card. Notes: svn path=/head/; revision=111916
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-3/+3
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-3/+3
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-011-2/+2
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* network interface driver changes:Sam Leffler2002-11-141-16/+7
| | | | | | | | | | | | | | | | | o don't strip the Ethernet header from inbound packets; pass packets up the stack intact (required significant changes to some drivers) o reference common definitions in net/ethernet.h (e.g. ETHER_ALIGN) o track ether_ifattach/ether_ifdetach API changes o track bpf changes (use BPF_TAP and BPF_MTAP) o track vlan changes (ifnet capabilities, revised processing scheme, etc.) o use if_input to pass packets "up" o call ether_ioctl for default handling of ioctls Reviewed by: many Approved by: re Notes: svn path=/head/; revision=106937
* s/__attribute__((__packed__))/__packed/gAlfred Perlstein2002-09-231-4/+4
| | | | Notes: svn path=/head/; revision=103842
* Fix warnings.Alfred Perlstein2002-06-011-3/+3
| | | | | | | | There's no need to use concatination when you have 'something.macro_arg'. Comment out comment following #endif. Notes: svn path=/head/; revision=97717
* Update to C99, s/__FUNCTION__/__func__/,David E. O'Brien2001-12-102-9/+9
| | | | | | | also don't use ANSI string concatenation. Notes: svn path=/head/; revision=87599
* Primary purpose of this commit is to enable support for the AviatorDuncan Barclay2001-05-174-299/+714
| | | | | | | | | | | | | | | | | | | | | | | | | Pro and Raylink cards with version 5 firmware. Only infra-structure mode has been tested. Specific changes for this feature are: o Add RFC1042 encapsulation of IP datagrams o Add authentication and association o Decode of the beacon (although not used) Other changes have been made: o Pass command completion status to *_done (in place for adding proper error recovery) o Move a couple of state variables into the current network parameters structure. This is in prep. for dealing with roaming. MFC after: 1 week Notes: svn path=/head/; revision=76767
* Eliminate some panics for errors we can recover from.Duncan Barclay2001-05-092-164/+121
| | | | | | | | | | | | | | Reduce the verbose memory map setup reports and work with pccardd to set the common memory map up. Use enumeration values for CARD_SET_RES_FLAGS. Use DELAY when spinning waiting for the card to come free instead of a loop. MFC: after 1 week Notes: svn path=/head/; revision=76390
* Remove if_ray_oldcard.h because pccard support multiple windows now.Duncan Barclay2001-05-073-140/+11
| | | | | | | | Setup attribute memory resource in ray_probe so that it is added to the print out of the resource list on card insertion. Notes: svn path=/head/; revision=76330
* pkh's TAILQ changes to if_mutliaddrs missed a counting loop.Duncan Barclay2001-03-041-1/+2
| | | | Notes: svn path=/head/; revision=73535
* Convert if_multiaddrs from LIST to TAILQ so that it can be traversedPoul-Henning Kamp2001-02-061-2/+2
| | | | | | | | | backwards in the three drivers which want to do that. Reviewed by: mikeh Notes: svn path=/head/; revision=72084
* Another round of the <sys/queue.h> FOREACH transmogriffer.Poul-Henning Kamp2001-02-041-2/+1
| | | | | | | | Created with: sed(1) Reviewed by: md5(1) Notes: svn path=/head/; revision=72012
* Use LIST_FOREACH() to traverse ifp->if_multiaddrs list, instead ofPoul-Henning Kamp2001-02-031-4/+2
| | | | | | | | | | <sys/queue.h> implementation details. Created with: /usr/sbin/sed Reviewed with: /sbin/md5 Notes: svn path=/head/; revision=71962
* Take advantage of the fixes to the pcic code that allows multipleDuncan Barclay2001-01-173-132/+160
| | | | | | | | | | | | | | | active memory maps. This removes the need to change the memory map from common to attribute every time a packet is sent/received. This increases performance and decreases cpu load (ping times on slow machines improve by about 1.5ms). Move out the old common memory/attrbiute memory hack functions to a new header file to tidy up the main code. I want to keep them available for a while. Notes: svn path=/head/; revision=71170
* o Now that I've had time to test the new interface, reintegrate it back in.Warner Losh2001-01-071-2/+2
| | | | | | | | | | | | | | | | | | o Fix OLDCARD to use the new interface. o Rename the offsetp argument to deltap to more closely reflect what it is returning (it returns the delta from the requested value to the actual value). o Remove duplicate $FreeBSD$ in pccbb.c o Allow deltap to be NULL. o Convert new isa pcic driver and add XXX comments that this function isn't actually implemented there (which means that NEWCARD pccard stuff won't work there until it is). o Revert attempts to make old inferface work in NEWCARD. Subitted by: peter (Parts of the new version code) Notes: svn path=/head/; revision=70748
* Tidy up if_init routine so that it does not return an error.Duncan Barclay2001-01-021-1/+13
| | | | Notes: svn path=/head/; revision=70604
* Fix probe/attach a little. We don't have to call bpfattach() anymoreBill Paul2000-12-081-21/+18
| | | | | | | | | | | | since ether_ifattach() does it for us. We do need to call ether_ifdetach() instead of if_detach(). And we don't have to check for ifp->if_name already being initialized because it never will be in FreeBSD 4.x and above. Reviewed by: Warner Losh, Duncan Barclay Notes: svn path=/head/; revision=69780
* Changes necessary to make this work.Warner Losh2000-11-125-108/+83
| | | | | | | | | | | | | The prior version in the tree was repo-copied from Duncan Barclay's cvs tree. Also add $FreeBSD$ Submitted by: Duncan Barclay Committed-via: raylan link with two webgear cards. Notes: svn path=/head/; revision=68646
* Add attribute memory setup warningsDuncan Barclay2000-07-111-37/+86
| | | | Notes: svn path=/head/; revision=62974
* Move newbus detection code to alloc routines.Duncan Barclay2000-07-071-50/+68
| | | | | | | Work around pccard nasties. Notes: svn path=/head/; revision=62784
* Subtle Tx bugs - I wonder why the cast wans't picked up...Duncan Barclay2000-06-211-4/+4
| | | | Notes: svn path=/head/; revision=61918
* Minor tweaks to error messages (after writing man page).Duncan Barclay2000-06-201-49/+81
| | | | | | | | | | | Renamed varible dst in ray_rx to mp as it is a pointer to an mbuf. Correctly grok addresses in data packets. Promte a couple of RECERRs to real errors. Notes: svn path=/head/; revision=61882
* Remove RECERR from RAY_DEBUGDuncan Barclay2000-06-181-2/+1
| | | | Notes: svn path=/head/; revision=61811
* General tidy up and plough through TODO list.Duncan Barclay2000-06-181-303/+143
| | | | | | | | | | | | | | | | | | | | Rewrote intro at top of file to reflect my better understanding of how it the memory mapping works. Clear the DONE list and move some thoughts into the TODO list. Remove RECERR from RAY_DEBUG Start to use a desired network parameter structure, only used in download code as I've realised that there are some problems with the idea. Break up ray_rx, and move the data packet handler into a seperate function. This meant some knock on changes in ray_rx_mgt/ray_rx_ctl to do with mbuf freeing. Remove some debug code/XXX comments that are out of date. Notes: svn path=/head/; revision=61810
* Add a desired network parameter structure to runq entries.Duncan Barclay2000-06-181-0/+2
| | | | Notes: svn path=/head/; revision=61805
* Suck out all of the current and desired n/w parameters.Duncan Barclay2000-06-112-5/+33
| | | | Notes: svn path=/head/; revision=61554
* Generated a new macor, RAY_RECERR for reporting errors with. Verbosity set ↵Duncan Barclay2000-06-111-4/+11
| | | | | | | | | with IFF_DEBUG (recommended at present). Move promisc flag into the nw parameter structure. Notes: svn path=/head/; revision=61553
* Generated a new macor, RAY_RECERR for reporting errors with. Verbosity set ↵Duncan Barclay2000-06-111-1/+1
| | | | | | | with IFF_DEBUG (recommended at present). Notes: svn path=/head/; revision=61552