Commit Graph

304 Commits

Author SHA1 Message Date
pgoyette
34e5f77540 Initialize the sysctl(9) stuff before configuring the spd(4) devices.
Otherwise, the devices do not create their own sysctl nodes!
2012-09-12 00:36:41 +00:00
jakllsch
5a74ca386e pic16lcreg.h has been unused since removal of Xbox support, remove. 2012-09-01 15:06:57 +00:00
mlelstv
e5129e3384 Use const nodes. Let sysctl_createv initialize sysctl_data. 2012-07-29 07:04:09 +00:00
matt
1750060a5d Use (void *) instead of (type **) which gcc complains about. 2012-07-28 23:03:47 +00:00
matt
1d3ffa8e77 Clean up error messages.
Tidy some logic.
2012-07-25 03:07:37 +00:00
dsl
e21a34c25e Add some pre-processor magic to verify that the type of the data item
passed to sysctl_createv() actually matches the declared type for
  the item itself.
In the places where the caller specifies a function and a structure
  address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
  sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
  AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
  fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.
2012-06-02 21:36:41 +00:00
pgoyette
865357bdaf Update handling of sysctl stuff when built as modules 2012-05-31 16:09:33 +00:00
wiz
0d8b40f040 Fix logical errors (&& instead of & in a few places). 2012-04-28 17:27:08 +00:00
pgoyette
6ecf19e095 Identify SMBus block-mode operations.
XXX Nothing in the kernel issues block-mode commands, and each i2c bus
XXX driver needs its own support for the block-mode operations.
2012-04-22 14:10:36 +00:00
bouyer
5358272642 always set *data to appease gcc -03 (some users of cx24227_readreg() don't
check return value for error).
2012-03-15 16:20:36 +00:00
pgoyette
e4d5f1d494 Don't try to match a device if there's already a device attached at
the specified address.
2012-03-14 02:57:10 +00:00
matt
303782ebd0 Rework this driver to support other dsrtc than just the DS1307.
Support both BCD and 32-bit binary type RTCs.
Supports DS1339, DS1672, and DS3232.
To select variant, put the module # in flags in the the config file.
dsrtc at iic0 addr 0x69 flags 1339
If the flags is not supplied, a 1307 is assumed (compatible).
2012-02-23 20:59:19 +00:00
pgoyette
eda587d6aa Clean up display of initial hardware provided limits. No functional change. 2012-02-02 02:47:59 +00:00
nakayama
067924576f Add "dimm" found on Sun US-IIe based machines (eg. Netra X1, Blade 100). 2012-01-22 10:36:52 +00:00
nonaka
2388feef61 fix my license notice. 2012-01-21 19:44:28 +00:00
phx
3828823874 Add direct config support. 2012-01-07 21:02:15 +00:00
phx
422b962b84 Fixed 12/24h mode. Bit 6 from the hours register indicates 12h mode.
Do not overwrite the control register (0x07) with random contents.
2012-01-07 15:03:11 +00:00
jmcneill
37ffe0c4a8 remove Xbox support 2011-11-18 22:18:07 +00:00
christos
c79d6fa4e6 tidy up. 2011-11-17 16:04:07 +00:00
jakllsch
ea1988b045 Fix last envsys2 conversion (1.10). From Tetsuya Isaki in PR#45622. 2011-11-17 13:47:27 +00:00
macallan
e572604a78 Support setting the temperature threshold for the LM75's alarm/interrupt
output. Some hardware ( I'm looking at you, Gdium ) abuses it to control
a fan.
2011-11-09 05:47:54 +00:00
macallan
eb069a115e remove spurious warning about duplicate devices when using info from MD
code ( like OpenFirmware )
ok jmcneill
2011-10-11 15:19:09 +00:00
jmcneill
b64e359841 iic_ioctl_exec: if the i2c controller's "exec" function uses -1 instead of
an error code to report failure, convert it to EIO.
2011-10-03 23:53:04 +00:00
jmcneill
5a065f0064 fix build for kernels with i2c host controller drivers but no iic(4)
driver present
2011-10-03 22:27:23 +00:00
jmcneill
afdecb8ae7 iic_ioctl_exec: initialize cmd before using it 2011-10-02 21:12:43 +00:00
jmcneill
76608f59e8 now that iic is a module, add "iic" dependency to iic drivers 2011-10-02 19:03:56 +00:00
jmcneill
3b6fbb4913 add support for detaching iic(4) 2011-10-02 18:58:45 +00:00
jmcneill
fccaaf8f20 I2C_IOCTL_EXEC: only allow i2c write ops if the device was opened for writing 2011-10-02 17:39:40 +00:00
jmcneill
ab747348b5 Install dev/i2c/i2c_io.h and implement the API in the iic(4) driver.
Obsolete the I2C_SCAN option as this can now be done from userland.
2011-10-02 16:39:45 +00:00
mbalmer
ebecabb816 Consistent use of 'return'. 2011-10-02 12:25:40 +00:00
mbalmer
f2b8ed7ad8 Build iic(4) and gpioiic(4) as modules. 2011-10-02 12:13:08 +00:00
mbalmer
5589d51709 ii2c can be built as module. 2011-10-02 11:38:48 +00:00
jruoho
b5fcb61237 Fix RCS keyword string. 2011-08-29 11:16:35 +00:00
jruoho
df2580b9bc Add Zarlink ZL10353 DVB demodulator (or as it is now know, Intel CE623x). 2011-08-29 11:14:15 +00:00
christos
32ba7fa0b5 fix gcc-4.5 warnings 2011-08-18 02:08:06 +00:00
jmcneill
e04c7348d5 lg3303 depends on dtv_math, not xc3028 2011-08-13 18:31:38 +00:00
jmcneill
9bd8d0664c lg3303 should depend on dtv_math, not xc3028 2011-08-09 10:54:22 +00:00
jmcneill
707c764851 add dtv_math.h 2011-08-09 10:53:09 +00:00
jmcneill
fb95eabd74 modify the dtv device api so hardware drivers can be loaded independently
of the dtv module
2011-08-09 01:42:24 +00:00
jmcneill
013a9fdd5f hide debug messages under CX24227_DEBUG 2011-08-05 21:19:23 +00:00
jakllsch
97ec23c032 Various cleanup, mostly reducing debugging spew. 2011-08-05 20:51:09 +00:00
jmcneill
752c6db679 add QAM64/256 support 2011-08-05 20:32:22 +00:00
jmcneill
22ade8bbb4 modularize cx24227 2011-08-04 22:24:45 +00:00
jmcneill
bc4ac1aee2 modularize mt2131 2011-08-04 22:24:29 +00:00
jakllsch
07f38b106d Add Conexant/Samsung CX24227/S5H1409 demodulator subroutines. 2011-08-04 01:48:34 +00:00
jakllsch
e3196c5439 Add subroutines to support Microtune MT2131 silicon tuner. 2011-08-04 01:45:37 +00:00
pgoyette
aca9ef1449 Prevent multiple attachments at the same i2c address.
OK jmcneill@
2011-08-02 18:46:35 +00:00
pgoyette
5304bf6b4c When detaching the device, tear down its sysctl tree. 2011-08-02 14:06:15 +00:00
macallan
65d8c9c17f appease gcc 4.5 2011-08-01 22:42:57 +00:00
pgoyette
e3bc45f1ac Modularize the spdmem(4) driver 2011-08-01 03:49:52 +00:00