Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/marvell Add I2C child hooks.



details:   https://anonhg.NetBSD.org/src/rev/0f66c1fe77be
branches:  trunk
changeset: 573586:0f66c1fe77be
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Feb 01 20:37:09 2005 +0000

description:
Add I2C child hooks.

diffstat:

 sys/dev/marvell/gtvar.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 9f46489d8e4a -r 0f66c1fe77be sys/dev/marvell/gtvar.h
--- a/sys/dev/marvell/gtvar.h   Tue Feb 01 20:33:58 2005 +0000
+++ b/sys/dev/marvell/gtvar.h   Tue Feb 01 20:37:09 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gtvar.h,v 1.7 2004/11/26 05:10:31 jmc Exp $    */
+/*     $NetBSD: gtvar.h,v 1.8 2005/02/01 20:37:09 matt Exp $   */
 
 /*
  * Copyright (c) 2002 Allegro Networks, Inc., Wasabi Systems, Inc.
@@ -69,6 +69,7 @@
 #define        GT_PCIOK(gt, ga, cd)            GT_CHILDOK((gt), (ga), (cd), 2, 2)
 #define        GT_ETHEROK(gt, ga, cd)          GT_CHILDOK((gt), (ga), (cd), 4, 3)
 #define        GT_OBIOOK(gt, ga, cd)           GT_CHILDOK((gt), (ga), (cd), 7, 5)
+#define        GT_I2COK(gt, ga, cd)            GT_CHILDOK((gt), (ga), (cd), 12, 1)
 
 #define        GT_CHILDFOUND(gt, ga, pos) \
        ((void)(((gt)->gt_childmask |= (1 << (((ga)->ga_unit) + (pos))))))
@@ -77,6 +78,7 @@
 #define        GT_PCIFOUND(gt, ga)             GT_CHILDFOUND((gt), (ga), 2)
 #define        GT_ETHERFOUND(gt, ga)           GT_CHILDFOUND((gt), (ga), 4)
 #define        GT_OBIOFOUND(gt, ga)            GT_CHILDFOUND((gt), (ga), 7)
+#define        GT_I2CFOUND(gt, ga)             GT_CHILDFOUND((gt), (ga), 12)
 
 struct gt_attach_args {
        const char *ga_name;            /* class name of device */



Home | Main Index | Thread Index | Old Index