files.i2c revision 1.26
1# $NetBSD: files.i2c,v 1.26 2010/02/22 03:50:56 pgoyette Exp $ 2 3defflag opt_i2cbus.h I2C_SCAN 4define i2cbus { } 5define i2cexec 6 7device iic { [addr = -1], [size = -1] } 8attach iic at i2cbus 9file dev/i2c/i2c.c iic | i2cbus 10file dev/i2c/i2c_exec.c iic | i2cbus | i2cexec 11 12# Common module for bit-bang'ing an I2C bus 13define i2c_bitbang 14file dev/i2c/i2c_bitbang.c i2c_bitbang 15 16# 17# I2C client devices 18# 19 20# M41T00 Real Time Clock 21device m41trtc 22attach m41trtc at iic 23file dev/i2c/m41t00.c m41trtc 24 25# M41ST84 Real Time Clock 26device strtc 27attach strtc at iic 28file dev/i2c/m41st84.c strtc 29 30# MAX6900 Real Time Clock 31device maxrtc 32attach maxrtc at iic 33file dev/i2c/max6900.c maxrtc 34 35# Philips PCF8583 Real Time Clock 36device pcfrtc 37attach pcfrtc at iic 38file dev/i2c/pcf8583.c pcfrtc 39 40# Atmel/Microchip 24Cxx Serial EEPROM 41define at24cxx_eeprom 42device seeprom 43attach seeprom at iic 44file dev/i2c/at24cxx.c seeprom | at24cxx_eeprom 45 needs-flag 46 47# National Semiconductor LM75 temperature sensor 48device lmtemp: sysmon_envsys 49attach lmtemp at iic 50file dev/i2c/lm75.c lmtemp 51 52# National Semiconductor LM78 temp sensor/fan controller 53attach lm at iic with lm_iic 54file dev/i2c/lm_i2c.c lm_iic 55 56# Dallas DS1307 Real Time Clock 57device dsrtc 58attach dsrtc at iic 59file dev/i2c/ds1307.c dsrtc 60 61# Xicor X1226 Real Time Clock 62device xrtc 63attach xrtc at iic 64file dev/i2c/x1226.c xrtc 65 66# Analog Devices dBCool family of thermal monitors / fan controllers 67define dbcool {} 68device dbcool: sysmon_envsys 69attach dbcool at iic 70file dev/i2c/dbcool.c dbcool 71 72# RICOH RS5C372[AB] Real Time Clock 73device rs5c372rtc 74attach rs5c372rtc at iic 75file dev/i2c/rs5c372.c rs5c372rtc 76 77# RICOH R2025S/D Real Time Clock 78device r2025rtc 79attach r2025rtc at iic 80file dev/i2c/r2025.c r2025rtc 81 82# VESA Display Data Channel 2 83device ddc 84define ddc_read_edid 85attach ddc at iic 86file dev/i2c/ddc.c ddc | ddc_read_edid 87 88# SGS TDA7433 audio mixer 89device sgsmix 90attach sgsmix at iic 91file dev/i2c/sgsmix.c sgsmix needs-flag 92defflag opt_sgsmix.h SGSMIX_DEBUG 93 94# Xbox PIC16LC System Management Controller 95device pic16lc: sysmon_envsys 96attach pic16lc at iic 97file dev/i2c/pic16lc.c pic16lc needs-flag 98 99# Xbox Serial EEPROM 100device xbseeprom 101attach xbseeprom at iic 102file dev/i2c/xbseeprom.c xbseeprom 103 104# Memory Serial Presence Detect 105device spdmem 106attach spdmem at iic 107file dev/i2c/spdmem.c spdmem 108 109# Memory Temp Sensor 110device sdtemp: sysmon_envsys 111attach sdtemp at iic 112file dev/i2c/sdtemp.c sdtemp 113 114# ADM1021 115device admtemp: sysmon_envsys 116attach admtemp at iic 117file dev/i2c/adm1021.c admtemp 118 119# SMSC LPC47M192 hardware monitor 120device smscmon: sysmon_envsys 121attach smscmon at iic 122file dev/i2c/smscmon.c smscmon 123