diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2011-06-07 16:29:52 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2011-06-07 16:29:52 +0000 |
commit | e60e001d81ca154fe31485309b53ddd2013a8955 (patch) | |
tree | c2f3424059643fb9fa73e4d63f10635c628bccea /sys/arch/macppc/dev/i2svar.h | |
parent | 621d0d335660ef1290b0c0f9bb4fffacd0d9bfb7 (diff) |
Make use of macobio_* methods to manage the i2s GPIOs, remove the customs
gpio_* methods and move the remaining global variables in the softc.
ok ratchov@, krw@
Diffstat (limited to 'sys/arch/macppc/dev/i2svar.h')
-rw-r--r-- | sys/arch/macppc/dev/i2svar.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/arch/macppc/dev/i2svar.h b/sys/arch/macppc/dev/i2svar.h index ff4dc25b909..8c4701fdb87 100644 --- a/sys/arch/macppc/dev/i2svar.h +++ b/sys/arch/macppc/dev/i2svar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: i2svar.h,v 1.7 2011/05/05 18:54:23 jasper Exp $ */ +/* $OpenBSD: i2svar.h,v 1.8 2011/06/07 16:29:51 mpi Exp $ */ /*- * Copyright (c) 2001,2003 Tsubai Masanari. All rights reserved. @@ -72,6 +72,16 @@ struct i2s_softc { u_int sc_treble; u_int sc_mute; + u_int sc_spkr; /* amp mute gpio offset */ + u_int sc_hp; /* headphone mute gpio offset */ + u_int sc_hp_detect; /* headphone detect gpio */ + u_int sc_hp_active; + u_int sc_line; /* line out mute gpio offset */ + u_int sc_line_detect; /* line detect gpio */ + u_int sc_line_active; + u_int sc_hw_reset; /* hw reset gpio */ + + bus_dma_tag_t sc_dmat; dbdma_regmap_t *sc_odma; dbdma_regmap_t *sc_idma; |