files.i2c revision 1.29
1# $NetBSD: files.i2c,v 1.29 2010/10/10 05:17:44 kiyohara 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 29defflag opt_strtc.h STRTC_NO_USERRAM 30 STRTC_NO_WATCHDOG 31 32# MAX6900 Real Time Clock 33device maxrtc 34attach maxrtc at iic 35file dev/i2c/max6900.c maxrtc 36 37# Philips PCF8583 Real Time Clock 38device pcfrtc 39attach pcfrtc at iic 40file dev/i2c/pcf8583.c pcfrtc 41 42# Atmel/Microchip 24Cxx Serial EEPROM 43define at24cxx_eeprom 44device seeprom 45attach seeprom at iic 46file dev/i2c/at24cxx.c seeprom | at24cxx_eeprom 47 needs-flag 48 49# National Semiconductor LM75 temperature sensor 50device lmtemp: sysmon_envsys 51attach lmtemp at iic 52file dev/i2c/lm75.c lmtemp 53 54# National Semiconductor LM78 temp sensor/fan controller 55attach lm at iic with lm_iic 56file dev/i2c/lm_i2c.c lm_iic 57 58# Dallas DS1307 Real Time Clock 59device dsrtc 60attach dsrtc at iic 61file dev/i2c/ds1307.c dsrtc 62 63# Xicor X1226 Real Time Clock 64device xrtc 65attach xrtc at iic 66file dev/i2c/x1226.c xrtc 67 68# Analog Devices dBCool family of thermal monitors / fan controllers 69define dbcool {} 70device dbcool: sysmon_envsys 71attach dbcool at iic 72file dev/i2c/dbcool.c dbcool 73 74# RICOH RS5C372[AB] Real Time Clock 75device rs5c372rtc 76attach rs5c372rtc at iic 77file dev/i2c/rs5c372.c rs5c372rtc 78 79# RICOH R2025S/D Real Time Clock 80device r2025rtc 81attach r2025rtc at iic 82file dev/i2c/r2025.c r2025rtc 83 84# VESA Display Data Channel 2 85device ddc 86define ddc_read_edid 87attach ddc at iic 88file dev/i2c/ddc.c ddc | ddc_read_edid 89 90# SGS TDA7433 audio mixer 91device sgsmix 92attach sgsmix at iic 93file dev/i2c/sgsmix.c sgsmix needs-flag 94defflag opt_sgsmix.h SGSMIX_DEBUG 95 96# Xbox PIC16LC System Management Controller 97device pic16lc: sysmon_envsys 98attach pic16lc at iic 99file dev/i2c/pic16lc.c pic16lc needs-flag 100 101# Xbox Serial EEPROM 102device xbseeprom 103attach xbseeprom at iic 104file dev/i2c/xbseeprom.c xbseeprom 105 106# Memory Serial Presence Detect 107attach spdmem at iic with spdmem_iic 108file dev/i2c/spdmem_i2c.c spdmem_iic 109 110# Memory Temp Sensor 111device sdtemp: sysmon_envsys 112attach sdtemp at iic 113file dev/i2c/sdtemp.c sdtemp 114 115# ADM1021 116device admtemp: sysmon_envsys 117attach admtemp at iic 118file dev/i2c/adm1021.c admtemp 119 120# SMSC LPC47M192 hardware monitor 121device smscmon: sysmon_envsys 122attach smscmon at iic 123file dev/i2c/smscmon.c smscmon 124 125# G760a FAN controller 126device g760a: sysmon_envsys 127attach g760a at iic 128file dev/i2c/g760a.c g760a 129