summaryrefslogtreecommitdiff
path: root/sys/dev/smbus
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagrelease/5.4.0_cvscvs2svn2005-05-077-7/+7
| | | | | | 'RELENG_5_4_0_RELEASE'. This commit was manufactured to restore the state of the 5.4-RELEASE image.
* MFC: /*- and my license changes for sys/[a-d]*Warner Losh2005-01-301-1/+1
| | | | Notes: svn path=/stable/5/; revision=141016
* Do the dreaded s/dev_t/struct cdev */Poul-Henning Kamp2004-06-161-4/+4
| | | | | | | Bump __FreeBSD_version accordingly. Notes: svn path=/head/; revision=130585
* Fix various style(9) bugs. This includes the removal of wrongJoerg Wunsch2004-05-171-38/+21
| | | | | | | | | | | | | | | reimplementations of enodev() (for the smbread() and smbwrite() functions), as well as fixing various errno values to conform to errno(3). Bruce also points out that a number of the pointer == NULL tests are probably nonsense because the respective checks are already done at upper layers. (Mostly) submitted by: bde Notes: svn path=/head/; revision=129352
* You wouldn't believe a driver could survive doing userland IO withoutJoerg Wunsch2004-05-162-12/+49
| | | | | | | | | | | properly using copyin/copyout for more than 5 years? This one did. :-) Properly encapsulate all user<->kernel data transfers using copy{in,out}. MFC after: 1 month Notes: svn path=/head/; revision=129290
* Device megapatch 4/6:Poul-Henning Kamp2004-02-211-0/+2
| | | | | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags. Notes: svn path=/head/; revision=126080
* Device megapatch 1/6:Poul-Henning Kamp2004-02-211-2/+0
| | | | | | | | | | Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number. Notes: svn path=/head/; revision=126076
* No need for a separate nfpm driver now - amdpm handles both.Doug Rabson2003-09-061-1/+0
| | | | Notes: svn path=/head/; revision=119797
* Use __FBSDID().David E. O'Brien2003-08-242-2/+6
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119419
* Don't hardcode unit numer '0'.Bernd Walter2003-08-101-1/+1
| | | | | | | We can have multiple instances. Notes: svn path=/head/; revision=118728
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-03-031-13/+7
| | | | | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl) Notes: svn path=/head/; revision=111815
* Cleanup of amdpm(4).Nicolas Souchu2002-09-211-0/+1
| | | | | | | | | Add of NVIDIA nForce (nfpm) smbus support. Obtained from: Thomas D. Dean <tomdean@speakeasy.org> Notes: svn path=/head/; revision=103764
* move <machine/iic.h> and <machine/smb.h> to <dev/iicbus/iic.h> andPeter Wemm2002-09-191-2/+1
| | | | | | | <dev/smbus/smb.h> - there is nothing MD about these ioctl definitions. Notes: svn path=/head/; revision=103588
* Major rework of the iicbus/smbus framework:Nicolas Souchu2002-03-234-107/+60
| | | | | | | | | | | - VIA chipset SMBus controllers added - alpm driver updated - Support for dynamic modules added - bktr FreeBSD smbus updated but not tested - cleanup Notes: svn path=/head/; revision=93023
* SMBus support for the AMD 756 power management unit. See smbus(4),Murray Stokely2001-09-161-0/+1
| | | | | | | | | | | | | | amdpm(4) and smb(4). This device can be used with userland programs such as sysutils/lmmon to retrieve sensor information from the motherboard. PR: kern/23989 Obtained from: Matthew C. Forman <mcf@dmu.ac.uk> Based on: alpm(4) Notes: svn path=/head/; revision=83553
* KSE Milestone 2Julian Elischer2001-09-121-3/+3
| | | | | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha Notes: svn path=/head/; revision=83366
* Send the remains (such as I have located) of "block major numbers" toPoul-Henning Kamp2001-03-261-1/+0
| | | | | | | the bit-bucket. Notes: svn path=/head/; revision=74810
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-151-1/+0
| | | | Notes: svn path=/head/; revision=67164
* Driver for the Intel 82801AA (ICH) SMBus controller and compatibles.Archie Cobbs2000-10-061-0/+1
| | | | | | | Obtained from: Whistle source tree Notes: svn path=/head/; revision=66703
* Remove unneeded #include <sys/kernel.h>Poul-Henning Kamp2000-04-291-1/+0
| | | | Notes: svn path=/head/; revision=59760
* Remove ~25 unneeded #include <sys/conf.h>Poul-Henning Kamp2000-04-192-2/+0
| | | | | | | Remove ~60 unneeded #include <sys/malloc.h> Notes: svn path=/head/; revision=59391
* Remove unneeded <sys/buf.h> includes.Poul-Henning Kamp2000-04-181-1/+0
| | | | | | | | Due to some interesting cpp tricks in lockmgr, the LINT kernel shrinks by 924 bytes. Notes: svn path=/head/; revision=59368
* * Factor out the object system from new-bus so that it can be used byDoug Rabson2000-04-081-0/+2
| | | | | | | | | | | | | non-device code. * Re-implement the method dispatch to improve efficiency. The new system takes about 40ns for a method dispatch on a 300Mhz PII which is only 10ns slower than a direct function call on the same hardware. This changes the new-bus ABI slightly so make sure you re-compile any driver modules which you use. Notes: svn path=/head/; revision=59093
* Remove the 'ivars' arguement to device_add_child() andMatthew N. Dodd1999-12-032-3/+3
| | | | | | | | | | | | | | | | | | | device_add_child_ordered(). 'ivars' may now be set using the device_set_ivars() function. This makes it easier for us to change how arbitrary data structures are associated with a device_t. Eventually we won't be modifying device_t to add additional pointers for ivars, softc data etc. Despite my best efforts I've probably forgotten something so let me know if this breaks anything. I've been running with this change for months and its been quite involved actually isolating all the changes from the rest of the local changes in my tree. Reviewed by: peter, dfr Notes: svn path=/head/; revision=54073
* Convert smb to use make_dev() rather than cdevsw_add(). This stops thePeter Wemm1999-11-181-1/+3
| | | | | | | | annoying 'smb is usurping smb's cdevsw' type messages. (Yes, there are other ways to fix cdevsw_add(), but that is a doomed api) Notes: svn path=/head/; revision=53330
* Use (temporarily) cdevsw_add() so we can change from DEV_DRIVER_MODULE()Peter Wemm1999-11-081-1/+2
| | | | | | | to DRIVER_MODULE(). Notes: svn path=/head/; revision=52999
* Sync with RELENG_3.Nicolas Souchu1999-11-012-4/+8
| | | | Notes: svn path=/head/; revision=52776
* Remove five now unused fields from struct cdevsw. They should neverPoul-Henning Kamp1999-09-251-5/+0
| | | | | | | | | | | have been there in the first place. A GENERIC kernel shrinks almost 1k. Add a slightly different safetybelt under nostop for tty drivers. Add some missing FreeBSD tags Notes: svn path=/head/; revision=51658
* $Id$ -> $FreeBSD$Peter Wemm1999-08-287-7/+7
| | | | Notes: svn path=/head/; revision=50477
* Alter the behavior of sys/kern/subr_bus.c:device_print_child()Matthew N. Dodd1999-07-291-12/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - device_print_child() either lets the BUS_PRINT_CHILD method produce the entire device announcement message or it prints "foo0: not found\n" Alter sys/kern/subr_bus.c:bus_generic_print_child() to take on the previous behavior of device_print_child() (printing the "foo0: <FooDevice 1.1>" bit of the announce message.) Provide bus_print_child_header() and bus_print_child_footer() to actually print the output for bus_generic_print_child(). These functions should be used whenever possible (unless you can just use bus_generic_print_child()) The BUS_PRINT_CHILD method now returns int instead of void. Modify everything else that defines or uses a BUS_PRINT_CHILD method to comply with the above changes. - Devices are 'on' a bus, not 'at' it. - If a custom BUS_PRINT_CHILD method does the same thing as bus_generic_print_child(), use bus_generic_print_child() - Use device_get_nameunit() instead of both device_get_name() and device_get_unit() - All BUS_PRINT_CHILD methods return the number of characters output. Reviewed by: dfr, peter Notes: svn path=/head/; revision=49195
* Don't clobber the smb cdevsw entry that was installed by the driverPeter Wemm1999-07-061-5/+1
| | | | | | | framework. Notes: svn path=/head/; revision=48637
* Remove cmaj and bmaj args from DEV_DRIVER_MODULE.Poul-Henning Kamp1999-07-041-3/+2
| | | | Notes: svn path=/head/; revision=48557
* Simplify cdevsw registration.Poul-Henning Kamp1999-05-311-17/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The cdevsw_add() function now finds the major number(s) in the struct cdevsw passed to it. cdevsw_add_generic() is no longer needed, cdevsw_add() does the same thing. cdevsw_add() will print an message if the d_maj field looks bogus. Remove nblkdev and nchrdev variables. Most places they were used bogusly. Instead check a dev_t for validity by seeing if devsw() or bdevsw() returns NULL. Move bdevsw() and devsw() functions to kern/kern_conf.c Bump __FreeBSD_version to 400006 This commit removes: 72 bogus makedev() calls 26 bogus SYSINIT functions if_xe.c bogusly accessed cdevsw[], author/maintainer please fix. I4b and vinum not changed. Patches emailed to authors. LINT probably broken until they catch up. Notes: svn path=/head/; revision=47640
* This commit should be a extensive NO-OP:Poul-Henning Kamp1999-05-301-5/+22
| | | | | | | | | | | | | | | | Reformat and initialize correctly all "struct cdevsw". Initialize the d_maj and d_bmaj fields. The d_reset field was not removed, although it is never used. I used a program to do most of this, so all the files now use the same consistent format. Please keep it that way. Vinum and i4b not modified, patches emailed to respective authors. Notes: svn path=/head/; revision=47625
* Unconfuse DEV_MODULE() and DEV_DRIVER_MODULE() about the difference betweenPoul-Henning Kamp1999-05-091-2/+2
| | | | | | | a major number for a dev_t. Notes: svn path=/head/; revision=46792
* Move the declaration of the interrupt type from the driver structureDoug Rabson1999-05-082-4/+2
| | | | | | | to the BUS_SETUP_INTR call. Notes: svn path=/head/; revision=46743
* Continue where Julian left off in July 1998:Poul-Henning Kamp1999-05-071-2/+2
| | | | | | | | | | | | | | | | | Virtualize bdevsw[] from cdevsw. bdevsw() is now an (inline) function. Join CDEV_MODULE and BDEV_MODULE to DEV_MODULE (please pay attention to the order of the cmaj/bmaj arguments!) Join CDEV_DRIVER_MODULE and BDEV_DRIVER_MODULE to DEV_DRIVER_MODULE (ditto!) (Next step will be to convert all bdev dev_t's to cdev dev_t's before they get to do any damage^H^H^H^H^H^Hwork in the kernel.) Notes: svn path=/head/; revision=46635
* Return approriate errors to userland.Nicolas Souchu1999-02-143-20/+52
| | | | Notes: svn path=/head/; revision=43998
* Fix smbus allocation and add the alsmb (see alpm(4)) driver.Nicolas Souchu1999-02-134-18/+29
| | | | Notes: svn path=/head/; revision=43975
* Add parens to SMBPRI, fixing bug in tsleep() call that OR's SMBPRI withMatthew Dillon1999-01-271-2/+2
| | | | | | | something else. Notes: svn path=/head/; revision=43294
* Return error codes to user-land.Nicolas Souchu1999-01-141-12/+12
| | | | | | | Submitted by: Takanori Watanabe <takawata@shidahara1.planet.sci.kobe-u.ac.jp> Notes: svn path=/head/; revision=42670
* Change /dev/smb and /dev/iic interface to allow user programs to interact withNicolas Souchu1999-01-094-41/+22
| | | | | | | | | | | | | devices dynamically. That means, + only one /dev/iic or /dev/smb device for each smb/iic bus to access + I2C/SMB device address must be given to any ioctl + new devices may be plugged and accessed after boot, which was impossible previously (device addresses were hardcoded into the kernel) Notes: svn path=/head/; revision=42442
* Rename smbtx to intsmb (IntelSMB interface), the future PIIX4 SMBusNicolas Souchu1998-12-281-22/+21
| | | | | | | interface driver. Notes: svn path=/head/; revision=42129
* Eliminate compiler warning.Archie Cobbs1998-12-101-2/+2
| | | | Notes: svn path=/head/; revision=41635
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticArchie Cobbs1998-12-072-8/+6
| | | | | | | and local variables, goto labels, and functions declared but not defined. Notes: svn path=/head/; revision=41591
* Remove broken and useless intr interface.Nicolas Souchu1998-11-222-5/+3
| | | | | | | | | | Submitted by: Doug Rabson <dfr@nlsystems.com> Amancio Hasty <hasty@rah.star-gate.com> Avoid compile warnings. Notes: svn path=/head/; revision=41296
* Add semicolon to INTERFACE declarationsNicolas Souchu1998-11-081-2/+2
| | | | Notes: svn path=/head/; revision=41012
* Change METHODE (french) to METHOD.Nicolas Souchu1998-11-071-3/+3
| | | | | | | Submitted by: Nick Hibma <nick.hibma@jrc.it> Notes: svn path=/head/; revision=40994
* New callback mechanism to allow iicbus bus allocation when requestingNicolas Souchu1998-10-314-32/+79
| | | | | | | smbus over iicsmb(4). Notes: svn path=/head/; revision=40785
* Major number allocated for generic SMB i/o -> 106Nicolas Souchu1998-09-091-5/+3
| | | | Notes: svn path=/head/; revision=39024