summaryrefslogtreecommitdiff
path: root/sys/modules
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagrelease/5.2.0_cvscvs2svn2004-01-10421-421/+421
| | | | | | | 'RELENG_5_2_0_RELEASE'. This commit was manufactured to restore the state of the 5.2-RELEASE image. Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
* This commit was manufactured by cvs2svn to create branch 'RELENG_5_2'.cvs2svn2003-12-071-17/+0
| | | | Notes: svn path=/releng/5.2/; revision=123193
* Remove SMP option support from building the ACPI module as it is no longerJohn Baldwin2003-12-051-3/+0
| | | | | | | | | | needed. Approved by: re (murray) Requested by: njl Notes: svn path=/head/; revision=123163
* - Reenable building of the ACPI module on i386.John Baldwin2003-12-031-0/+1
| | | | | | | | | | - Remove 'device acpi' from i386 GENERIC and revert back to using ACPI as a module by default. Approved by: re (scottl / blanket) Notes: svn path=/head/; revision=123136
* Add madt.c to the list of sources for i386.John Baldwin2003-12-031-0/+3
| | | | | | | Approved by: re (scottl / blanket) Notes: svn path=/head/; revision=123134
* Updated cx driver commit part 1: bring in the new kernel driver.Warner Losh2003-12-031-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is the vastly updated cx drvier from Roman Kurakin <rik@cronyx.ru> who has been patiently waiting for this update for sometime. The driver is mostly a rewrite from the version we have in the tree. While some similarities remain, losing the little history that the old driver has is not a big loss, and the re@ felt it was easier this way (less error prone). The userland parts of this update will be committed shortly. The driver is not connected to the build yet. I want to make sure I don't break any platform at any time, so I want to test that with these files in the tree before I continue (on the off chance I'm forgetting a file). I changed the DEBUG macro to CX_DEBUG from the code that was submitted (to not break when we go to building with opt_global.h after the release), as well adding $FreeBSD$. Submitted by: Roman Kurakin Approved by: re@ <scottl> Notes: svn path=/head/; revision=123120
* * Add acpi_pcpu_get_id(idx, *acpi_id, *cpu_id) which fetches theNate Lawson2003-11-261-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | idx'th present CPU with pc_acpi_id equal to *acpi_id. If *acpi_id does not match that processor's pc_acpi_id, return the value for ProcId derived from the MADT in *acpi_id. If pc_acpi_id is 0xffffffff, always override it with the value of *acpi_id. Finally, return pc_cpuid in *cpu_id and use that as our primary key. * Use pc_cpuid as our unique key because we know it is valid since MD code set it. The values for ProcId in the ASL and MADT don't match up on some machines (!), forcing us to fall back to ordered probing in that case. * Remove some #ifdef SMP since the refcount doesn't hurt performance and will be needed for dynamic _CST objects. Only one #ifdef SMP (for smp_rendezvous) remains. * Hook up SMP in the compile flags in the Makefile. Tested by: marcel, truckman Approved by: re (scottl) Notes: svn path=/head/; revision=122995
* o Remove @- from the ln and change it to a -sf. This was bogus, andWarner Losh2003-11-198-8/+6
| | | | | | | | | | | | | | | regocnized as such at the time. Now that the other bogons in the tree have been fixed, we can remove this ugly kludge. o Remove stale/bogus opt_foo.h files. These are left over from by-gone resources. And they point to the need, yet again, to improve the build system so meta information is only in one place. Submitted by: ru Reviewed by: bde Approved by: re@ (jhb) Notes: svn path=/head/; revision=122894
* Revert a NOOP change to Makefile that slipped into the last commit.Robert Watson2003-11-181-1/+0
| | | | | | | Pointed out by: tjr Notes: svn path=/head/; revision=122876
* Introduce a MAC label reference in 'struct inpcb', which cachesRobert Watson2003-11-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the MAC label referenced from 'struct socket' in the IPv4 and IPv6-based protocols. This permits MAC labels to be checked during network delivery operations without dereferencing inp->inp_socket to get to so->so_label, which will eventually avoid our having to grab the socket lock during delivery at the network layer. This change introduces 'struct inpcb' as a labeled object to the MAC Framework, along with the normal circus of entry points: initialization, creation from socket, destruction, as well as a delivery access control check. For most policies, the inpcb label will simply be a cache of the socket label, so a new protocol switch method is introduced, pr_sosetlabel() to notify protocols that the socket layer label has been updated so that the cache can be updated while holding appropriate locks. Most protocols implement this using pru_sosetlabel_null(), but IPv4/IPv6 protocols using inpcbs use the the worker function in_pcbsosetlabel(), which calls into the MAC Framework to perform a cache update. Biba, LOMAC, and MLS implement these entry points, as do the stub policy, and test policy. Reviewed by: sam, bms Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=122875
* Make interrupt pipe interval time configurable.Shunsuke Akiyama2003-11-161-1/+2
| | | | | | | | | | - Add kernel options: {UPLCOM,UVSCOM}_INTR_INTERVAL - Add sysctl variables: 'hw.usb.{uplcom,uvscom}.interval' MFC after: 1 week Notes: svn path=/head/; revision=122796
* Quick hack to make the nfsclient.ko loadable again. This brings inWarner Losh2003-11-161-1/+12
| | | | | | | | | | | | the nfsv4 files. It is intended to be a short-term bridge while alfred deals with the problem in a better way (eg, don't hesitate to back this out when the real fix comes along). I've not heard back from alfred in a few hours and other people are hitting this problem. Approved by: markm, rwatson, grog, murray Notes: svn path=/head/; revision=122770
* Implement Cx CPU idle states and updated throttling support.Nate Lawson2003-11-151-1/+2
| | | | | | | | | | | | | | | * Use the cpu_idle_hook() to do idling for C1-C3. * Use both _CST and the FADT to detect Cx states. * Use both _PTC and P_CNT for controlling throttling. * Add a notify handler to detect changes in _CST and _PSS * Call the _INI function for each processor if present. This will be done by ACPI-CA in the future. * Fix a bug on SMP systems where CPUs will attach multiple times if the bus is rescan. * Document new sysctls for controlling idling. Notes: svn path=/head/; revision=122766
* nfs4 client module.Alfred Perlstein2003-11-151-0/+36
| | | | | | | Not hooked up to the build yet. Notes: svn path=/head/; revision=122720
* Fix a bug whereby the physical endpoints of a gre(4) tunnel would notBruce M Simpson2003-11-141-2/+5
| | | | | | | | | | | | | | | | be printed, if the module were loaded into a kernel which had INET6 enabled. The gre(4) driver does not use INET6, nor is it specified for IPv6. The tunnel_status() function in ifconfig(8) is somewhat overzealous and assumes that all tunnel interfaces speak KAME ifioctls. This fix follows the path of least resistance, by teaching gre(4) about the two KAME ifioctls concerned. PR: bin/56341 Notes: svn path=/head/; revision=122699
* Following the repo-copy from src/sys/modules/mac_none/Makefile,Robert Watson2003-11-111-3/+3
| | | | | | | I neglected to update the filenames/etc in mac_stub. Do so now. Notes: svn path=/head/; revision=122512
* Don't compile with -g by default; there's a better way to build modules withRuslan Ermilov2003-11-101-2/+0
| | | | | | | debug support. Notes: svn path=/head/; revision=122414
* Add the Makefile glue for the udf_iconv module.Scott Long2003-11-072-0/+10
| | | | | | | Submitted by: imura@ryu16.org Notes: svn path=/head/; revision=122221
* The layer 3 (signalling) of NgATM netgraph node: ng_uni. This nodeHartmut Brandt2003-11-072-1/+19
| | | | | | | handles user and network side signaling and partly PNNI. Notes: svn path=/head/; revision=122219
* List the three modules that I have that aren't connected to the build.Warner Losh2003-11-061-0/+4
| | | | Notes: svn path=/head/; revision=122169
* Update the udf module makefile for the udf_iconv moduleScott Long2003-11-051-0/+1
| | | | | | | Submitted by: imura@ryu16.org Notes: svn path=/head/; revision=122099
* ppbus_if.c is necessary if you are loading submodules.Warner Losh2003-11-041-1/+1
| | | | Notes: svn path=/head/; revision=122023
* Module for cs driverWarner Losh2003-11-041-0/+9
| | | | Notes: svn path=/head/; revision=122018
* Temporarily disable the acpi(4) module on i386 until issues revolvingJohn Baldwin2003-11-031-1/+0
| | | | | | | | SMP probing and the MADT table can be sorted out. For now, if you want ACPI, you must compile it into your kernel statically using 'device acpi'. Notes: svn path=/head/; revision=122003
* Put the address handling, traffic descripto handling and theHartmut Brandt2003-11-031-1/+3
| | | | | | | | | message encoding and decoding stuff into the base module. All of this is accessed by several of the NgATM modules and putting this into atmbase reduceds the memory footprint. Notes: svn path=/head/; revision=121938
* Add dumb console driver and related bits.Hidetoshi Shimokawa2003-10-243-0/+34
| | | | | | | | | | | dcons(4): very simple console and gdb port driver dcons_crom(4): FireWire attachment dconschat(8): User interface to dcons Tested with: i386, i386-PAE, and sparc64. Notes: svn path=/head/; revision=121468
* Module build infrastructure for the NgATM SAA layer.Hartmut Brandt2003-10-244-1/+47
| | | | Notes: svn path=/head/; revision=121462
* Add SBP-II target mode driver.Hidetoshi Shimokawa2003-10-182-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Though this is still incomplete and has some missing features such as exclusive login and event notification, it may be enough for someone who wants to play with it. This driver is supposed to work with firewire(4), targ(4) of CAM(4) and scsi_target(8) which can be found in /usr/share/example/scsi_target. This driver doesn't require sbp(4) which implements initiator mode. Sample configuration: Kernel: (you can use modules as well) device firewire device scbus device targ device sbp_targ After reboot: # mdconfig -a -t malloc -s 10m md0 # scsi_target 0:0:0 /dev/md0 (Assuming sbp_targ0 on scbus0) You should find the 10MB HDD on FreeBSD/MacOS X/WinXP or whatever connected to the target using FireWire. Manpage is not finished yet. Notes: svn path=/head/; revision=121186
* Update Bluetooth code.Maksim Yevmenkin2003-10-128-26/+8
| | | | | | | | Reviewed by: M. Warner Losh <imp@bsdimp.com>; John Hay <jhay@freebsd.org> Approved by: M. Warner Losh <imp@bsdimp.com> (mentor) Notes: svn path=/head/; revision=121054
* MFp4: Change struct fw_xfer to reduce memory copy in fwmem_*() functions.Hidetoshi Shimokawa2003-10-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And many changes. * all - Major change of struct fw_xfer. o {send,recv}.buf is splitted into hdr and payload. o Remove unnecessary fields. o spd is moved under send and recv. - Remove unnecessary 'volatile' keyword. - Add definition of rtcode and extcode. * firewire.c - Ignore FWDEVINVAL devices in fw_noderesolve_nodeid(). - Check the existance of the bind before call STAILQ_REMOVE(). - Fix bug in the fw_bindadd(). - Change element of struct fw_bind for simplicity. - Check rtcode of response packet. - Reduce split transaction timeout to 200 msec. (100msec is the default value in the spec.) - Set watchdog timer cycle to 10 Hz. - Set xfer->tv just before calling fw_get_tlabel(). * fwohci.c - Simplifies fwohci_get_plen(). * sbp.c - Fix byte order of multibyte scsi_status informations. - Split sbp.c and sbp.h. - Unit number is not necessary for FIFO¤ address. - Reduce LOGIN_DELAY and SCAN_DELAY to 1 sec. - Add some constants defineded in SBP-2 spec. * fwmem.c - Introduce fwmem_strategy() and reduce memory copy. Notes: svn path=/head/; revision=120660
* - Support for multibyte charsets in LIBICONV.Max Khon2003-09-268-3/+33
| | | | | | | | | | | - CD9660_ICONV, NTFS_ICONV and MSDOSFS_ICONV kernel options (with corresponding modules). - kiconv(3) for loadable charset conversion tables support. Submitted by: Ryuichiro Imura <imura@ryu16.org> Notes: svn path=/head/; revision=120492
* update to reflect PFIL_HOOKS api changesSam Leffler2003-09-231-1/+1
| | | | | | | Supported by: FreeBSD Foundation Notes: svn path=/head/; revision=120387
* o update PFIL_HOOKS support to current API used by netbsdSam Leffler2003-09-231-0/+10
| | | | | | | | | | | | | | o revamp IPv4+IPv6+bridge usage to match API changes o remove pfil_head instances from protosw entries (no longer used) o add locking o bump FreeBSD version for 3rd party modules Heavy lifting by: "Max Laier" <max@love2party.net> Supported by: FreeBSD Foundation Obtained from: NetBSD (bits of pfil.h and pfil.c) Notes: svn path=/head/; revision=120386
* Only build the ebus driver on sparc64. It includes a header directlyMarcel Moolenaar2003-09-171-1/+5
| | | | | | | | | | | | | from the sparc64 subtree, which breaks building non-sparc64 platforms in the event the sparc64 subtree does not exist. The problem is specific to the module, because non-module builds are affected by the presence or absence of "device ebus" in the kernel configuration. PR: kern/56869 Notes: svn path=/head/; revision=120145
* Sort: build uart_bus_pccard.c before uart_bus_pci.c.Marcel Moolenaar2003-09-151-2/+2
| | | | Notes: svn path=/head/; revision=120085
* Add uart pccard bus attachment,based on sio_pccard.c .Takanori Watanabe2003-09-141-4/+4
| | | | | | | | | Wrote at: Hakone. Powered by: Warner Losh's scotch whisky. Tested by: nork Notes: svn path=/head/; revision=120056
* Add a PHY driver to support the built-in gigE PHY in the 8169S/8110SBill Paul2003-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | | ethernet chips. This driver is pretty simple, however it contains special DSP initialization code which is needed in order to get the chip to negotiate a gigE link. (This special initialization may not be needed in subsequent chip revs.) Also: - Fix typo in if_rlreg.h (RL_GMEDIASTAT_1000MPS -> RL_GMEDIASTAT_1000MBPS) - Deal with shared interrupts in re_intr(): if interface isn't up, return. - Fix another bug in re_gmii_writereg() (properly apply data field mask) - Allow PHY driver to read the RL_GMEDIASTAT register via the re_gmii_readreg() register (this is register needed to determine real time link/media status). Notes: svn path=/head/; revision=119976
* Add a device driver for the Broadcom BCM4401 ethernet controller,Bill Paul2003-09-092-0/+9
| | | | | | | | | | | | | | | | | written by Stuart Walsh and Duncan Barclay (with some kibbitzing by me). I'm checking it in on Stuart's behalf. The BCM4401 is built into several x86 laptop and desktop systems. For the moment, I have only enabled it in the x86 kernel config because although it's a PCI device, I haven't heard of any standalone NICs that use it. If somebody knows of one, we can easily add it to the other arches. This driver uses register/structure data gleaned from the Linux driver released by Broadcom, but does not contain any of the code from the Linux driver itself. It uses busdma. Notes: svn path=/head/; revision=119917
* Hook the SiS DRM up to the buildEric Anholt2003-09-092-1/+10
| | | | | | | Sponsored by: LinuxFund Notes: svn path=/head/; revision=119896
* Fix PATH: directive in sys/modules/re/Makefile, and add the re(4) driver toBill Paul2003-09-081-1/+1
| | | | | | | | | devd.conf. Pointed out by: Larry Rosenman Notes: svn path=/head/; revision=119870
* Take the support for the 8139C+/8169/8169S/8110S chips out of theBill Paul2003-09-082-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rl(4) driver and put it in a new re(4) driver. The re(4) driver shares the if_rlreg.h file with rl(4) but is a separate module. (Ultimately I may change this. For now, it's convenient.) rl(4) has been modified so that it will never attach to an 8139C+ chip, leaving it to re(4) instead. Only re(4) has the PCI IDs to match the 8169/8169S/8110S gigE chips. if_re.c contains the same basic code that was originally bolted onto if_rl.c, with the following updates: - Added support for jumbo frames. Currently, there seems to be a limit of approximately 6200 bytes for jumbo frames on transmit. (This was determined via experimentation.) The 8169S/8110S chips apparently are limited to 7.5K frames on transmit. This may require some more work, though the framework to handle jumbo frames on RX is in place: the re_rxeof() routine will gather up frames than span multiple 2K clusters into a single mbuf list. - Fixed bug in re_txeof(): if we reap some of the TX buffers, but there are still some pending, re-arm the timer before exiting re_txeof() so that another timeout interrupt will be generated, just in case re_start() doesn't do it for us. - Handle the 'link state changed' interrupt - Fix a detach bug. If re(4) is loaded as a module, and you do tcpdump -i re0, then you do 'kldunload if_re,' the system will panic after a few seconds. This happens because ether_ifdetach() ends up calling the BPF detach code, which notices the interface is in promiscuous mode and tries to switch promisc mode off while detaching the BPF listner. This ultimately results in a call to re_ioctl() (due to SIOCSIFFLAGS), which in turn calls re_init() to handle the IFF_PROMISC flag change. Unfortunately, calling re_init() here turns the chip back on and restarts the 1-second timeout loop that drives re_tick(). By the time the timeout fires, if_re.ko has been unloaded, which results in a call to invalid code and blows up the system. To fix this, I cleared the IFF_UP flag before calling ether_ifdetach(), which stops the ioctl routine from trying to reset the chip. - Modified comments in re_rxeof() relating to the difference in RX descriptor status bit layout between the 8139C+ and the gigE chips. The layout is different because the frame length field was expanded from 12 bits to 13, and they got rid of one of the status bits to make room. - Add diagnostic code (re_diag()) to test for the case where a user has installed a broken 32-bit 8169 PCI NIC in a 64-bit slot. Some NICs have the REQ64# and ACK64# lines connected even though the board is 32-bit only (in this case, they should be pulled high). This fools the chip into doing 64-bit DMA transfers even though there is no 64-bit data path. To detect this, re_diag() puts the chip into digital loopback mode and sets the receiver to promiscuous mode, then initiates a single 64-byte packet transmission. The frame is echoed back to the host, and if the frame contents are intact, we know DMA is working correctly, otherwise we complain loudly on the console and abort the device attach. (At the moment, I don't know of any way to work around the problem other than physically modifying the board, so until/unless I can think of a software workaround, this will have do to.) - Created re(4) man page - Modified rlphy.c to allow re(4) to attach as well as rl(4). Note that this code works for the sample 8169/Marvell 88E1000 NIC that I have, but probably won't work for the 8169S/8110S chips. RealTek has sent me some sample NICs, but they haven't arrived yet. I will probably need to add an rlgphy driver to handle the on-board PHY in the 8169S/8110S (it needs special DSP initialization). Notes: svn path=/head/; revision=119868
* Add support for the Coda 6.x venus<->kernel interface. This extendsTim J. Robbins2003-09-073-2/+26
| | | | | | | | | | | | | | | | | FIDs to be 128-bits wide and adds support for realms. Add a new CODA_COMPAT_5 option, which requests support for the old Coda 5.x interface instead of the new one. Create a new coda5.ko module that supports the 5.x interface, and make the existing coda.ko module use the new 6.x interface. These modules cannot both be loaded at the same time. Obtained from: Jan Harkes & the coda-6.0.2 distribution, NetBSD (drochner) (CODA_COMPAT_5 option). Notes: svn path=/head/; revision=119832
* Now that PC98 has it's own MD file, use uart_cpu_${MACHINE}.c andMarcel Moolenaar2003-09-071-2/+1
| | | | | | | not uart_cpu_${MACHINE_ARCH}.c. Notes: svn path=/head/; revision=119831
* add i8251Warner Losh2003-09-071-0/+1
| | | | Notes: svn path=/head/; revision=119823
* Hook-up the uart(4) driver to the build. For a detailed descriptionMarcel Moolenaar2003-09-062-1/+14
| | | | | | | | | | | | | | | | | | of what uart(4) is and/or is not see the initial commit log of one of the files in sys/dev/uart (or see share/man/man4/uart.4). Note that currently pc98 shares the MD file with i386. This needs to change when pc98 support is fleshed-out to properly support the various UARTs. A good example is sparc64 in this respect. We build uart(4) as a module on all platforms. This may break the ppc port. That depends on whether they do actually build modules. To use uart(4) on alpha, one must use the NO_SIO option. Notes: svn path=/head/; revision=119816
* Add pst as a moduleSøren Schmidt2003-08-302-0/+10
| | | | Notes: svn path=/head/; revision=119571
* Use the ACPICA AcpiEnterSleepStateS4bios instead of rolling our own. ThisNate Lawson2003-08-291-3/+2
| | | | | | | | | change also disables interrupts around non-S4 suspends whereas before we did not do this. Our version of AcpiEnterSleepStateS4bios was almost identical to the ACPICA version. Notes: svn path=/head/; revision=119549
* Check in the known good version of the wi driver, with prism/symbolWarner Losh2003-08-241-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | support stripped out and minimally renamed to owi. This driver attaches to lucent cards only. This is designed to aid in the testing of fixes to the wi driver for lucent cards. It is supported only as a module (you cannot compile it into your kernel). You cannot have the wi driver in your kernel (or loaded as a moudle) to use the owi module. I've not connected it to build, as this module is currently for debugging purposes. This is for developers only at the present time. If we can't get lucent support fixed by 5.2 code freeze, then we'll re-evaulate this support level. Please use this to fix the lucent support in dev/wi. This will be removed from the system when lucent support has been fixed in dev/wi. Note to developers: Do not connect this to the build, make it possible to build into the kernel or otherwise 'integrate' this into system without checking with me first. This is for debugging purposes only. If this doesn't work for you, I don't want to hear about it unless you are fixing the wi driver :-) Notes: svn path=/head/; revision=119392
* AGP GART driver for NVIDIA nForce/nForce2 chipsets.Matthew N. Dodd2003-08-231-1/+2
| | | | Notes: svn path=/head/; revision=119368
* Hook up mac_stub to the modules Makefile.Robert Watson2003-08-211-0/+1
| | | | | | | | Hook up mac_stub in files and options. Reference mac_stub in NOTES. Notes: svn path=/head/; revision=119218