aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/firewire
Commit message (Collapse)AuthorAgeFilesLines
* Correct a signedness bug which allowed members of the operatorColin Percival2006-12-061-1/+1
| | | | | | | | | | group to read kernel memory. Security: FreeBSD-SA-06:25.kmem Approved by: re (kensmith) Notes: svn path=/releng/6.2/; revision=164941
* MFC: revision 1.81Hidetoshi Shimokawa2005-11-281-1/+3
| | | | | | | Fix panic when we cannot find self-id of probing nodes. Notes: svn path=/stable/6/; revision=152875
* Big overall MFC of polling(4) cleanup:Gleb Smirnoff2005-10-073-63/+93
| | | | | | | | | | | | | | | | | | | | | | | o First attempt on removing Giant from polling. Details: http://lists.freebsd.org/pipermail/cvs-src/2005-September/051848.html o Second attempt, and big polling cleanup including: - Functinal approach to turning polling on/off - Deprecating of poll_in_trap - Removal of ifnet knowledge from kern_poll.c Details: http://lists.freebsd.org/pipermail/cvs-src/2005-October/053267.html o Improved checking of user configurable sysctls. Details: http://lists.freebsd.org/pipermail/cvs-src/2005-October/053351.html o Moving DEVICE_POLLING from opt_global.h to opt_device_polling.h: http://lists.freebsd.org/pipermail/cvs-src/2005-October/053479.html o All related documentation fixes. Approved by: re (kensmith) Thanks to: everyone, who helped with testing Notes: svn path=/stable/6/; revision=151061
* Merge linux_ioctl.c:1.128 svr4_sockio.c:1.17 altq_cbq.c:1.3 if_oltr.c:1.38Robert Watson2005-08-252-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* MFC rev 1.9, remove an incorrect and unnecessicary bzero of the softc.Brooks Davis2005-08-201-1/+0
| | | | | | | Approved by: re (kensmith) Notes: svn path=/stable/6/; revision=149311
* Merge two sets of changes relating to devfs device node cloning fromRobert Watson2005-08-132-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HEAD to RELENG_6: changes to introduce a credentialed version of the clone event handler, and then changes to merge the regular and credentialed versions into a single interface (along with updates to existing consumers). With this merge, 6.x and 7.x are in sync. First batch merges devfs_devs.c:1.37, devfs_vnops.c:1.115, kern_conf.c:1.187, tty_pty.c:1.138, mac_vfs.c:1.109, mac_biba.c:1.36, mac_lomac.c:1.36, mac_mls.c:1.73, mac_stub.c:1.53, mac_test.c:1.61, conf.h:1.223, mac.h:1.68, mac_policy.h:1.67 from HEAD to RELENG_6: When devfs cloning takes place, provide access to the credential of the process that caused the clone event to take place for the device driver creating the device. This allows cloned device drivers to adapt the device node based on security aspects of the process, such as the uid, gid, and MAC label. - Add a cred reference to struct cdev, so that when a device node is instantiated as a vnode, the cloning credential can be exposed to MAC. - Add make_dev_cred(), a version of make_dev() that additionally accepts the credential to stick in the struct cdev. Implement it and make_dev() in terms of a back-end make_dev_credv(). - Add a new event handler, dev_clone_cred, which can be registered to receive the credential instead of dev_clone, if desired. - Modify the MAC entry point mac_create_devfs_device() to accept an optional credential pointer (may be NULL), so that MAC policies can inspect and act on the label or other elements of the credential when initializing the skeleton device protections. - Modify tty_pty.c to register clone_dev_cred and invoke make_dev_cred(), so that the pty clone credential is exposed to the MAC Framework. While currently primarily focussed on MAC policies, this change is also a prerequisite for changes to allow ptys to be instantiated with the UID of the process looking up the pty. This requires further changes to the pty driver -- in particular, to immediately recycle pty nodes on last close so that the credential-related state can be recreated on next lookup. Submitted by: Andrew Reisse <andrew.reisse@sparta.com> Obtained from: TrustedBSD Project Sponsored by: SPAWAR, SPARTA Second batch merges scsi_target.c:1.68, coda_fbsd.c:1.43, firewirereg.h:1.38, fwdev.c:1.47, nmdm.c:1.36, snp.c:1.100, dsp.c:1.82, mixer.c:1.45, vkbd.c:1.9, devfs_vnops.c:1.117, tty_pty.c:1.139, tty_tty.c:1.57, bpf.c:1.156, if_tap.c:1.56, if_tun.c:1.153, smb_dev.c:1.28, conf.h:1.224 from HEAD to RELENG_6: Merge the dev_clone and dev_clone_cred event handlers into a single event handler, dev_clone, which accepts a credential argument. Implementors of the event can ignore it if they're not interested, and most do. This avoids having multiple event handler types and fall-back/precedence logic in devfs. This changes the kernel API for /dev cloning, and may affect third party packages containg cloning kernel modules. Requested by: phk These changes modifies the kernel device driver API for device cloning, and might require minor modifications to third party device drivers that make use of devfs cloning. It will not be merged to RELENG_5. Approved by: re (scottl) Notes: svn path=/stable/6/; revision=149038
* Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis2005-06-104-24/+39
| | | | | | | | | | | | | | | | | | | | | | | 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
* Recognize the integrated (though not necessarily enabled) FireWireMarius Strobl2005-05-202-0/+14
| | | | | | | | | | | | | | | | | | controllers of Sun PCIO-2 chips which are used onboard in most of the newer PCI-based sun4u machines (cosmetic change as they were also already probed as generic FWOHCI without this). As with gem(4), hme(4) and ohci(4) detect whether their intpin register is valid and correct it if necessary, i.e. set the respective IVAR to the right value for allocating the IRQ resource, as some of them come up having it set to 0 (in fact in all machines I'm currently aware of the FireWire part being enabled). This fixes attaching affected controllers. Apporved by: simokawa Tested by: Michiel Boland <michiel@boland.org> MFC after: 1 month Notes: svn path=/head/; revision=146439
* Explicitly hold a reference to the cdev we have just cloned. ThisPoul-Henning Kamp2005-03-311-0/+1
| | | | | | | | closes the race where the cdev was reclaimed before it ever made it back to devfs lookup. Notes: svn path=/head/; revision=144389
* fix potential null ptr derefSam Leffler2005-03-291-4/+4
| | | | | | | Submitted by: Coverity Prevent analysis tool Notes: svn path=/head/; revision=144263
* Use BUS_PROBE_DEFAULT for pci probe return valueWarner Losh2005-03-051-29/+29
| | | | Notes: svn path=/head/; revision=143161
* Clear PCIM_CMD_SERRESPEN and PCIM_CMD_PERRESPEN for broken hardware.Hidetoshi Shimokawa2005-01-061-1/+2
| | | | | | | | | Some amd64 laptops fail to boot with these flags. PR: kern/75482 Notes: svn path=/head/; revision=139759
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-0623-23/+23
| | | | Notes: svn path=/head/; revision=139749
* return after freeing data element, instead of falling through, and usingJohn-Mark Gurney2005-01-041-0/+1
| | | | | | | | | the free'd element, and ultimate NULL deref of the failed allocation. MFC after: 1 week Notes: svn path=/head/; revision=139680
* Fix malloc type in free().Hidetoshi Shimokawa2004-11-101-1/+1
| | | | Notes: svn path=/head/; revision=137503
* Respect _BOOT flag.Hidetoshi Shimokawa2004-10-222-6/+12
| | | | Notes: svn path=/head/; revision=136782
* Add a missing splx().Hidetoshi Shimokawa2004-09-061-0/+1
| | | | Notes: svn path=/head/; revision=134868
* Remove an unused variable.Hidetoshi Shimokawa2004-08-291-1/+1
| | | | Notes: svn path=/head/; revision=134485
* Assert Giant in fwe_start(), as it is not yet MPSAFE.Robert Watson2004-08-181-0/+2
| | | | Notes: svn path=/head/; revision=133930
* Since if_fwip 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. Approved by: dfr Notes: svn path=/head/; revision=133686
* Set IFF_NEEDSGIANT for fwe network interface since the firewireRobert Watson2004-08-121-1/+2
| | | | | | | | | framework isn't yet MPSAFE. Approved by: simokawa Notes: svn path=/head/; revision=133538
* Fix and add deivce ID's.Hidetoshi Shimokawa2004-08-042-4/+9
| | | | | | | Obtained from: DragonFly BSD Notes: svn path=/head/; revision=133116
* Avoid casts as lvalues.Alexander Kabaev2004-07-281-1/+1
| | | | Notes: svn path=/head/; revision=132771
* Temporary fix for interoperability with Windows and OS X. A more completeDoug Rabson2004-07-201-1/+1
| | | | | | | | | fix will follow when its ready. Submitted by: simokawa Notes: svn path=/head/; revision=132445
* Don't output too many debug messages for bootverbose.Hidetoshi Shimokawa2004-07-203-11/+16
| | | | | | | This driver seems to be fairly stable now. Notes: svn path=/head/; revision=132432
* Initialize ifp->if_output for FreeBSD-4.Hidetoshi Shimokawa2004-07-201-0/+3
| | | | Notes: svn path=/head/; revision=132430
* Adjust packet length correctly for FreeBSD-4.Hidetoshi Shimokawa2004-07-201-2/+4
| | | | | | | Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de> Notes: svn path=/head/; revision=132429
* Add some PCI IDs for OHCI chips.Hidetoshi Shimokawa2004-07-172-0/+30
| | | | | | | Obtained from: DragonFly BSD Notes: svn path=/head/; revision=132283
* Do a pass over all modules in the kernel and make them return EOPNOTSUPPPoul-Henning Kamp2004-07-151-0/+2
| | | | | | | | | | | for unknown events. A number of modules return EINVAL in this instance, and I have left those alone for now and instead taught MOD_QUIESCE to accept this as "didn't do anything". Notes: svn path=/head/; revision=132199
* Trim a few things from the dmesg output and stick them under bootverbose toJohn Baldwin2004-07-011-2/+3
| | | | | | | | | | cut down on the clutter including PCI interrupt routing, MTRR, pcibios, etc. Discussed with: USENIX Cabal Notes: svn path=/head/; revision=131398
* Remove the setting of the pci config variables on power state changes.Warner Losh2004-06-281-5/+0
| | | | | | | The bus does this now. Notes: svn path=/head/; revision=131255
* Fix the description of hw.firewire.sbp.exclusive_login.Hidetoshi Shimokawa2004-06-181-1/+1
| | | | | | | Submitted by: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp> Notes: svn path=/head/; revision=130677
* Second half of the dev_t cleanup.Poul-Henning Kamp2004-06-171-1/+1
| | | | | | | | | | | | | | The big lines are: NODEV -> NULL NOUDEV -> NODEV udev_t -> dev_t udev2dev() -> findcdev() Various minor adjustments including handling of userland access to kernel space struct cdev etc. Notes: svn path=/head/; revision=130640
* Do the dreaded s/dev_t/struct cdev */Poul-Henning Kamp2004-06-164-22/+22
| | | | | | | Bump __FreeBSD_version accordingly. Notes: svn path=/head/; revision=130585
* Fix spelling.Doug Rabson2004-06-151-2/+2
| | | | Notes: svn path=/head/; revision=130532
* If we run out of transmission labels, just re-queue the packet for laterDoug Rabson2004-06-142-4/+17
| | | | | | | | instead of printing endless error messages on the console and discarding the packet. Notes: svn path=/head/; revision=130460
* Add configuration rom entries for IP over firewire.Doug Rabson2004-06-132-0/+28
| | | | Notes: svn path=/head/; revision=130411
* Add a new driver to support IP over firewire. This driver is intended toDoug Rabson2004-06-132-0/+975
| | | | | | | | | | | conform to the rfc2734 and rfc3146 standard for IP over firewire and should eventually supercede the fwe driver. Right now the broadcast channel number is hardwired and we don't support MCAP for multicast channel allocation - more infrastructure is required in the firewire code itself to fix these problems. Notes: svn path=/head/; revision=130407
* Add missing <sys/module.h> includesPoul-Henning Kamp2004-05-301-0/+1
| | | | Notes: svn path=/head/; revision=129879
* Don't try to copy out the result payload if there isn't one. This ioctlDoug Rabson2004-05-231-6/+14
| | | | | | | | interface really needs changing to split out the various async request types. Notes: svn path=/head/; revision=129628
* 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
* Initialise OHCI_CROMHDR and OHCI_BUS_OPT in fwohci_ibr to make sure thatDoug Rabson2004-05-231-0/+7
| | | | | | | they have the right values at the first bus reset. Notes: svn path=/head/; revision=129611
* Change u_intXX_t to uintXX_t. Change a couple of 'unsigned long's toDoug Rabson2004-05-2218-573/+573
| | | | | | | uint32_t where appropriate. Notes: svn path=/head/; revision=129585
* Mark the capability of this driver to receive VLAN frames >1500 bytesYaroslav Tykhiy2004-05-211-0/+1
| | | | | | | | | as initially active in if_capenable since it is always on. Reviewed by: simokawa Notes: svn path=/head/; revision=129552
* Fix spelling.Doug Rabson2004-05-213-13/+13
| | | | Notes: svn path=/head/; revision=129541
* Don't use the node id as an index into the topology map. This breaksDoug Rabson2004-05-161-2/+21
| | | | | | | | if a node on the bus has more than three ports (like my cheapo six port hub). Notes: svn path=/head/; revision=129274
* MFp4: FireWireHidetoshi Shimokawa2004-03-2613-243/+449
| | | | | | | | | | | | | | | | | | | | | | * all - s/__FUNCTION__/__func__/. Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> - Compatibility for RELENG_4 and DragonFly. * firewire - Timestamp just before queuing. - Retry bus probe if it fails. - Use device_printf() for debug message. - Invalidiate CROM while update. - Don't process minimum/invalid CROM. * sbp - Add ORB_SHORTAGE flag. - Add sbp.tags tunable. - Revive doorbell support. It's not enabled by default. Notes: svn path=/head/; revision=127468
* Fix a bug introduced in rev 1.33(mega API change).Hidetoshi Shimokawa2004-03-241-1/+1
| | | | | | | | | | Because xfer->send.payload is a pointer to the buffer, '&' shouldn't be there. Submitted by: John Weisgerber <weisgerberj@gsilumonics.com> PR: misc/64623 Notes: svn path=/head/; revision=127347
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-171-3/+2
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Check that xfer != NULL before dereferencing it, not after.Colin Percival2004-02-221-2/+2
| | | | | | | | Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor) Notes: svn path=/head/; revision=126102