aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sr
Commit message (Collapse)AuthorAgeFilesLines
* Merge linux_ioctl.c:1.128 svr4_sockio.c:1.17 altq_cbq.c:1.3 if_oltr.c:1.38Robert Watson2005-08-251-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis2005-06-101-24/+29
| | | | | | | | | | | | | | | | | | | | | | | 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
* Remove bus_{mem,p}io.h and related code for a micro-optimization on i386Yoshihiro Takahashi2005-05-293-6/+0
| | | | | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr) Notes: svn path=/head/; revision=146734
* Use BUS_PROBE_DEFAULT in preference to 0 and BUS_PROBE_LOW_PRIORITY inWarner Losh2005-03-011-2/+2
| | | | | | | | preference to some random negative number to allow other drivers a bite at the apple. Notes: svn path=/head/; revision=142890
* Initialize Netgraph type at a correct time, before device probing.Ruslan Ermilov2005-02-151-1/+1
| | | | Notes: svn path=/head/; revision=141951
* Install netgraph type at an appropriate time.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141791
* Two problems here:Ruslan Ermilov2005-02-121-21/+1
| | | | | | | | | | | | 1. Dependency on netgraph module was broken (wrong version). 2. Netgraph node type was never destroyed on unload. This was masked by problem #1. Fixed both by using NETGRAPH_INIT(). Now netgraph node type is created on module load, as in the rest of netgraph modules. Notes: svn path=/head/; revision=141723
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-065-5/+5
| | | | Notes: svn path=/head/; revision=139749
* Since if_sr 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=133699
* Convert Netgraph to use mbuf tags to pass its meta information around.Julian Elischer2004-06-251-6/+5
| | | | | | | | | | | Thanks to Sam for importing tags in a way that allowed this to be done. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> Also allow the sr and ar drivers to create netgraph versions of their modules. Document the change to the ksocket node. Notes: svn path=/head/; revision=131108
* Add missing <sys/module.h> includesPoul-Henning Kamp2004-05-302-0/+2
| | | | Notes: svn path=/head/; revision=129879
* Switch to using C99 sparse initialisers for the type methods array.Julian Elischer2004-05-291-12/+9
| | | | | | | | | | | Should make no binary difference. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> Reviewed by: Harti Brandt <harti@freebsd.org> MFC after: 1 week Notes: svn path=/head/; revision=129823
* 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
* Get rid of the last two uses of NG_NODELEN + 1 in the base system byHartmut Brandt2004-01-261-1/+1
| | | | | | | replacing them with NG_NODESIZ. Notes: svn path=/head/; revision=125042
* Replace the if_name and if_unit members of struct ifnet with new membersBrooks Davis2003-10-311-2/+2
| | | | | | | | | | | | | | | | 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-243-4/+8
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119420
* Prefer new location of pci include files (which have only been in theWarner Losh2003-08-221-1/+1
| | | | | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD. Notes: svn path=/head/; revision=119287
* Use bus_space*() instead of in*() and out*().John Hay2003-04-234-317/+280
| | | | Notes: svn path=/head/; revision=113931
* - Express hard dependencies on bus (pci, isa, pccard) andMatthew N. Dodd2003-04-152-2/+4
| | | | | | | | | | | network layer (ether). - Don't abuse module names to facilitate ifconfig module loading; such abuse isn't really needed. (And if we do need type information associated with a module then we should make it explicit and not use hacks.) Notes: svn path=/head/; revision=113506
* 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
* network interface driver changes:Sam Leffler2002-11-141-4/+2
| | | | | | | | | | | | | | | | | 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
* Fix the rest of the 64-bit warnings for the sr(4) driver.John Baldwin2002-11-071-4/+4
| | | | Notes: svn path=/head/; revision=106587
* Fix lots of places that assume sizeof(int) == sizeof(void *). Most ofJohn Baldwin2002-11-071-18/+18
| | | | | | | | | | these were cosmetic. However, at least two of these changes fix bugs where a (fake) pointer to a RX descriptor was added to the physical memory start address with the cast in the wrong place resulting in rxdesc[pmem_start] instead of (uintptr_t)rxdesc + pmem_start. Notes: svn path=/head/; revision=106575
* Use if_printf(ifp, "blah") instead of printf("sr%d: blah", ifp->if_unit).Brooks Davis2002-10-011-4/+4
| | | | Notes: svn path=/head/; revision=104258
* Don't abuse __FreeBSD__ as version number. Since it was >= 3, removeWarner Losh2002-07-211-2/+0
| | | | | | | the ifdef completely. Notes: svn path=/head/; revision=100427
* Change callers of mtx_init() to pass in an appropriate lock type name. InJohn Baldwin2002-04-041-2/+3
| | | | | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64 Notes: svn path=/head/; revision=93818
* Fix clock selection for X.21 interfaces.John Hay2001-02-261-13/+5
| | | | Notes: svn path=/head/; revision=73101
* Newbusify the sr device and move it to its new location.John Hay2001-01-304-3797/+700
| | | | Notes: svn path=/head/; revision=71826
* Stop counting sppp interfaces, we were just testing its presence to givePeter Wemm2001-01-292-14/+0
| | | | | | | a warning if it was missing. Notes: svn path=/head/; revision=71798
* Special case for compiling LINT - just give a warning and continue on.Peter Wemm2001-01-171-0/+5
| | | | | | | | At least we have a chance at getting test compile coverage for the rest of the kernel now. Notes: svn path=/head/; revision=71135
* Part 2 of the netgraph rewrite.Julian Elischer2001-01-082-30/+30
| | | | | | | | | This is mostly cosmetic changes, (though I caught a bug or two while makeing them) Reviewed by: archie@freebsd.org Notes: svn path=/head/; revision=70784
* Rewrite of netgraph to start getting ready for SMP.Julian Elischer2001-01-062-46/+72
| | | | | | | | | | | This version is functional and is aproaching solid.. notice I said APROACHING. There are many node types I cannot test I have tested: echo hole ppp socket vjc iface tee bpf async tty The rest compile and "Look" right. More changes to follow. DEBUGGING is enabled in this code to help if people have problems. Notes: svn path=/head/; revision=70700
* Divorce the kernel binary ABI version number from the messageJulian Elischer2000-12-182-66/+60
| | | | | | | | | | | | format version number. (userland programs should not need to be recompiled when the netgraph kernel internal ABI is changed. Also fix modules that don;t handle the fact that a caller may not supply a return message pointer. (benign at the moment because the calling code checks, but that will change) Notes: svn path=/head/; revision=70159
* Another mismatch found by Gcc:Julian Elischer2000-12-122-2/+0
| | | | | | | | This is what happenss when you let the patches pile up too long without committing them.. brain rot.. Notes: svn path=/head/; revision=69946
* Reviewed by: Archie@freebsd.orgJulian Elischer2000-12-122-4/+12
| | | | | | | | | | | | | | | | This clears out my outstanding netgraph changes. There is a netgraph change of design in the offing and this is to some extent a superset of soem of the new functionality and some of the old functionality that may be removed. This code works as before, but allows some new features that I want to work with and evaluate. It is the basis for a version of netgraph with integral locking for SMP use. This is running on my test machine with no new problems :-) Notes: svn path=/head/; revision=69922
* Convert more malloc+bzero to malloc+M_ZERO.David Malone2000-12-082-18/+12
| | | | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Notes: svn path=/head/; revision=69781
* Lock down the network interface queues. The queue mutex must be obtainedJonathan Lemon2000-11-252-6/+16
| | | | | | | | | | | | | | | | | before adding/removing packets from the queue. Also, the if_obytes and if_omcasts fields should only be manipulated under protection of the mutex. IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on the queue. An IF_LOCK macro is provided, as well as the old (mutex-less) versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which needs them, but their use is discouraged. Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF, which takes care of locking/enqueue, and also statistics updating/start if necessary. Notes: svn path=/head/; revision=69152
* Duh. These have been sitting in my tree since I committed this stuff.Julian Elischer2000-11-201-0/+29
| | | | | | | | Thes are identical to what I committed except that they had the correct copyright headers. This is what I was SUPPOSED to have checked in.. Notes: svn path=/head/; revision=68943
* Mass update of isa drivers using compatability shims to usePeter Wemm2000-05-282-2/+24
| | | | | | | COMPAT_ISA_DRIVER() so that we can get rid of the evil isa_compat.h table. Notes: svn path=/head/; revision=61011
* Two simple changes to the kernel internal API for netgraph modules,Julian Elischer2000-04-282-6/+8
| | | | | | | | | | to support future work in flow-control and 'packet reject/replace' processing modes. reviewed by: phk, archie Notes: svn path=/head/; revision=59728
* Make the N2 isa cards probe again. Remove the unused frame relay hooks.John Hay2000-04-082-430/+16
| | | | | | | | | | This should also fix PR 17814 where flags were ignored on the first usage of ifconfig on the interface. PR: 17814 Notes: svn path=/head/; revision=59096
* Ahhrggg. Put the test for the compat shims AFTER the file that includesWarner Losh2000-03-271-4/+4
| | | | | | | | | them. Pointed out by: bde Notes: svn path=/head/; revision=58701
* Per conversations in -current, add #error to these drivers when you don'tWarner Losh2000-03-271-0/+4
| | | | | | | have the right compatibility shims enabled. ISA drivers to follow later. Notes: svn path=/head/; revision=58695
* Remove definition of the unimplemented "control" hook.Archie Cobbs2000-01-213-5/+2
| | | | Notes: svn path=/head/; revision=56351
* Fix an #ifdef that should have been and #ifndef.Archie Cobbs2000-01-202-2/+2
| | | | | | | Noticed by: Hellmuth Michaelis <hm@hcs.de> Notes: svn path=/head/; revision=56304
* Add explicit null entries for new entrypoints.Julian Elischer1999-12-012-2/+4
| | | | | | | Forgotten by: Archie Notes: svn path=/head/; revision=53981
* fix braino.. line misplaced.Julian Elischer1999-11-192-2/+2
| | | | Notes: svn path=/head/; revision=53417
* protect some more operations with splimp() under Netgraph.Julian Elischer1999-11-192-6/+6
| | | | Notes: svn path=/head/; revision=53402
* Fix typo in previous commit.Archie Cobbs1999-11-022-2/+2
| | | | Notes: svn path=/head/; revision=52808