summaryrefslogtreecommitdiffstats
path: root/sys/modules
Commit message (Collapse)AuthorAgeFilesLines
* Adding missing cx (cronyx/Sigma) entry.rik2004-02-141-0/+2
| | | | Approved by: imp (mentor)
* Removed -g from CFLAGS. There is a better way to build debuggingru2004-02-1310-16/+6
| | | | | | versions of the modules, and unconditionally putting -g in CFLAGS has negative impact on the size of the resulting .ko object, even now that debugging symbols are always stripped.
* Always build ext2fs module. There is no written policy preventing theobrien2004-01-281-4/+0
| | | | building of GPL'ed modules.
* Enable ndis for AMD64 (for the time that modules are supported)...obrien2004-01-281-0/+4
|
* Add NO_BLUETOOTH knob to the build processemax2004-01-281-0/+2
| | | | | Requested by: phk Reviewed by: imp (mentor), ru
* Removed custom "load" and "unload" targets.ru2004-01-194-27/+0
| | | | | Removed "deinstall" targets -- the idea is to provide the standard "deinstall" target.
* Normalize SUBDIR.ru2004-01-193-20/+21
|
* - Build things in pure alphabetical dictionary order.ru2004-01-161-148/+227
| | | | | | | | | | - Unify the conditional assignments section so that architectural exclusions come first, sorted, then options and !options, sorted by the option name, also in directory order, then architecture specific sections, sorted by the architecture name, with i386 being a traditional exception. Prodded by: bde
* Use generic net80211 framework for awi driver.onoe2004-01-151-1/+1
| | | | | | Restore awi to be workable again; it was broken.. XXX: The initialization is still unreliable yet, it sometimes fails on some card.
* Include "../Makefile.inc" to propagate the configuration to subdirectories.nyan2004-01-131-0/+3
|
* MODULE_DEPEND is a C macro, not a make(1).ru2004-01-131-1/+0
|
* bsd.kmod.mk does not deal with manpages anymore.ru2004-01-1324-25/+0
|
* Don't put .depend in CLEANFILES, it's cleaned by cleandepend.ru2004-01-131-1/+0
|
* Hook up acpi_toshibanjl2004-01-121-1/+1
|
* Add the ACPI Toshiba extras driver (hotkeys, LCD backlight, video output,njl2004-01-111-0/+9
| | | | | | forced fan control, and CPU throttling). Submitted by: Hiroyuki Aizu <aizu@navi.org>
* Add Audigy support.obrien2004-01-111-2/+11
| | | | | | I started with a year-old patch by Orlando Bassotto <orlando.bassotto@ieo-research.it>, and ported it to 5.2-CURRENT along with fixing the problems working with pre-Audigy cards.
* The ida module is not needed for pc98.nyan2004-01-111-1/+1
|
* ida(4) module. PCI only for now.mdodd2004-01-112-0/+10
|
* Implement NdisOpenFile()/NdisCloseFile()/NdisMapFile()/NdisUnmapFile().wpaul2004-01-091-1/+1
| | | | | | | | | By default, we search for files in /compat/ndis. This can be changed with a systcl. These routines are used by some drivers which need to download firmware or microcode into their respective devices during initialization. Also, remove extraneous newlines from the 'built-in' sysctl/registry variables.
* Always clean all files, including ones under ACPI_DEBUG when doing anjl2004-01-081-7/+9
| | | | "make clean".
* Use double quotes instead of single quotes for echos to build optionsbde2003-12-293-3/+4
| | | | | headers as in most other modules Makefiles (5 yesterday, none now). Fixed any simple nearby style bugs (not many).
* Fixed some style bugs (mainly the bad examples @echo, NOMAN, and non-usebde2003-12-291-10/+6
| | | | | | | of ${.TARGET}). This was the last instances of @echo in module Makefiles after it was removed in sio/Makefile. NOMAN is nonsense in module Makefiles, and was removed, but came back here and in too many other places.
* Fixed some style bugs:bde2003-12-291-8/+6
| | | | | | | | - SRCS was totally disordered. - the echos to create options headers were hidden using '@'. - the args of echos to create options headers were single-quoted. - the target names for the rules to create options headers were repeated. - the unused option COMPAT_FREEBSD4 was put in opt_compat.h.
* Fixed some style bugs. SRCS and the opt_*.h rules were totallybde2003-12-291-11/+10
| | | | | disordered. This commit only fixes the external disorder by rearranging whole lines.
* Fix to support pc98 and currect typo.nyan2003-12-281-2/+11
|
* New sio module. A number of people have suggested this over the yearsimp2003-12-271-0/+25
| | | | | | | | | | (most recently bde), so I'll commit the module I've had knocking around in my tree for a while. This may have some rough edges, so if you are able to build it on non-i386 platform (including pc98) please let me know you succeeded. When I get enough reports, I'll connect it to the build. If there are problems, feel free to fix them. Suggested by: bde
* Move the acpi module down a directory. This will allow us to importnjl2003-12-242-76/+81
| | | | other ACPI-specific drivers into sys/modules/acpi/.
* Push m_apply() and m_getptr() up into the colleciton of standard mbufbms2003-12-151-1/+1
| | | | | | | | routines, and purge them from opencrypto. Reviewed by: sam Obtained from: NetBSD Sponsored by: spc.org
* Turn off build of if_ndis.ko by default, since it depends on anwpaul2003-12-121-1/+0
| | | | | autogenerated file (ndis_driver_data.h) which by definition can't be available unless the user creates it.
* Grrr. Put the right .PATH statements in the right Makefiles.wpaul2003-12-112-2/+2
|
* Ack! Only build if_ndis.ko and ndis.ko if arch == i386.wpaul2003-12-111-2/+2
|
* Commit the first cut of Project Evil, also known as the NDISulator.wpaul2003-12-113-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Yes, it's what you think it is. Yes, you should run away now. This is a special compatibility module for allowing Windows NDIS miniport network drivers to be used with FreeBSD/x86. This provides _binary_ NDIS compatibility (not source): you can run NDIS driver code, but you can't build it. There are three main parts: sys/compat/ndis: the NDIS compat API, which provides binary compatibility functions for many routines in NDIS.SYS, HAL.dll and ntoskrnl.exe in Windows (these are the three modules that most NDIS miniport drivers use). The compat module also contains a small PE relocator/dynalinker which relocates the Windows .SYS image and then patches in our native routines. sys/dev/if_ndis: the if_ndis driver wrapper. This module makes use of the ndis compat API and can be compiled with a specially prepared binary image file (ndis_driver_data.h) containing the Windows .SYS image and registry key information parsed out of the accompanying .INF file. Once if_ndis.ko is built, it can be loaded and unloaded just like a native FreeBSD kenrel module. usr.sbin/ndiscvt: a special utility that converts foo.sys and foo.inf into an ndis_driver_data.h file that can be compiled into if_ndis.o. Contains an .inf file parser graciously provided by Matt Dodd (and mercilessly hacked upon by me) that strips out device ID info and registry key info from a .INF file and packages it up with a binary image array. The ndiscvt(8) utility also does some manipulation of the segments within the .sys file to make life easier for the kernel loader. (Doing the manipulation here saves the kernel code from having to move things around later, which would waste memory.) ndiscvt is only built for the i386 arch. Only files.i386 has been updated, and none of this is turned on in GENERIC. It should probably work on pc98. I have no idea about amd64 or ia64 at this point. This is still a work in progress. I estimate it's about %85 done, but I want it under CVS control so I can track subsequent changes. It has been tested with exactly three drivers: the LinkSys LNE100TX v4 driver (Lne100v4.sys), the sample Intel 82559 driver from the Windows DDK (e100bex.sys) and the Broadcom BCM43xx wireless driver (bcmwl5.sys). It still needs to have a net80211 stuff added to it. To use it, you would do something like this: # cd /sys/modules/ndis # make; make load # cd /sys/modules/if_ndis # ndiscvt -i /path/to/foo.inf -s /path/to/foo.sys -o ndis_driver_data.h # make; make load # sysctl -a | grep ndis All registry keys are mapped to sysctl nodes. Sometimes drivers refer to registry keys that aren't mentioned in foo.inf. If this happens, the NDIS API module creates sysctl nodes for these keys on the fly so you can tweak them. An example usage of the Broadcom wireless driver would be: # sysctl hw.ndis0.EnableAutoConnect=1 # sysctl hw.ndis0.SSID="MY_SSID" # sysctl hw.ndis0.NetworkType=0 (0 for bss, 1 for adhoc) # ifconfig ndis0 <my ipaddr> netmask 0xffffff00 up Things to be done: - get rid of debug messages - add in ndis80211 support - defer transmissions until after a status update with NDIS_STATUS_CONNECTED occurs - Create smarter lookaside list support - Split off if_ndis_pci.c and if_ndis_pccard.c attachments - Make sure PCMCIA support works - Fix ndiscvt to properly parse PCMCIA device IDs from INF files - write ndisapi.9 man page
* hea is gone, remove its moduleimp2003-12-072-12/+0
|
* Remove hea module.imp2003-12-071-1/+0
|
* Remove SMP option support from building the ACPI module as it is no longerjhb2003-12-051-3/+0
| | | | | | | needed. Approved by: re (murray) Requested by: njl
* - Reenable building of the ACPI module on i386.jhb2003-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)
* Add madt.c to the list of sources for i386.jhb2003-12-031-0/+3
| | | | Approved by: re (scottl / blanket)
* Updated cx driver commit part 1: bring in the new kernel driver.imp2003-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>
* * Add acpi_pcpu_get_id(idx, *acpi_id, *cpu_id) which fetches thenjl2003-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)
* o Remove @- from the ln and change it to a -sf. This was bogus, andimp2003-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)
* Revert a NOOP change to Makefile that slipped into the last commit.rwatson2003-11-181-1/+0
| | | | Pointed out by: tjr
* Introduce a MAC label reference in 'struct inpcb', which cachesrwatson2003-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
* Make interrupt pipe interval time configurable.akiyama2003-11-161-1/+2
| | | | | | | - Add kernel options: {UPLCOM,UVSCOM}_INTR_INTERVAL - Add sysctl variables: 'hw.usb.{uplcom,uvscom}.interval' MFC after: 1 week
* Quick hack to make the nfsclient.ko loadable again. This brings inimp2003-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
* Implement Cx CPU idle states and updated throttling support.njl2003-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.
* nfs4 client module.alfred2003-11-151-0/+36
| | | | Not hooked up to the build yet.
* Fix a bug whereby the physical endpoints of a gre(4) tunnel would notbms2003-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
* Following the repo-copy from src/sys/modules/mac_none/Makefile,rwatson2003-11-111-3/+3
| | | | I neglected to update the filenames/etc in mac_stub. Do so now.
* Don't compile with -g by default; there's a better way to build modules withru2003-11-101-2/+0
| | | | debug support.
* Add the Makefile glue for the udf_iconv module.scottl2003-11-072-0/+10
| | | | Submitted by: imura@ryu16.org
OpenPOWER on IntegriCloud