Deleted Added
full compact
cs428x.h (1.10) cs428x.h (1.11)
1/* $NetBSD: cs428x.h,v 1.10 2006/04/15 21:20:47 jmcneill Exp $ */
1/* $NetBSD: cs428x.h,v 1.11 2006/08/06 16:21:11 jmcneill Exp $ */
2
3/*
4 * Copyright (c) 2000 Tatoku Ogaito. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright

--- 50 unchanged lines hidden (view full) ---

60#define BUFADDR(p) ((void *)((p)->dum)) /* buffer for audio driver */
61
62/*
63 * Flags (currently used only for CS4280)
64 */
65enum cs428x_flags {
66 CS428X_FLAG_NONE = 0x0,
67 CS428X_FLAG_INVAC97EAMP = 0x1, /* inverted AC97 external amp */
2
3/*
4 * Copyright (c) 2000 Tatoku Ogaito. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright

--- 50 unchanged lines hidden (view full) ---

60#define BUFADDR(p) ((void *)((p)->dum)) /* buffer for audio driver */
61
62/*
63 * Flags (currently used only for CS4280)
64 */
65enum cs428x_flags {
66 CS428X_FLAG_NONE = 0x0,
67 CS428X_FLAG_INVAC97EAMP = 0x1, /* inverted AC97 external amp */
68 /* XXX future use: clkrun hack */
68 CS428X_FLAG_CLKRUNHACK = 0x2 /* needs CLKRUN hack */
69};
70
71/*
72 * Software state
73 */
74struct cs428x_softc {
75 struct device sc_dev;
76

--- 58 unchanged lines hidden (view full) ---

135
136 /* AC97 CODEC */
137 struct ac97_codec_if *codec_if;
138 struct ac97_host_if host_if;
139
140 /* Power Management */
141 char sc_suspend;
142 void *sc_powerhook; /* Power Hook */
69};
70
71/*
72 * Software state
73 */
74struct cs428x_softc {
75 struct device sc_dev;
76

--- 58 unchanged lines hidden (view full) ---

135
136 /* AC97 CODEC */
137 struct ac97_codec_if *codec_if;
138 struct ac97_host_if host_if;
139
140 /* Power Management */
141 char sc_suspend;
142 void *sc_powerhook; /* Power Hook */
143
144 /* CLKRUN hack (CS428X_FLAG_CLKRUN), only for CS4280 */
145 int sc_active;
146 bus_space_tag_t sc_pm_iot;
147 bus_space_handle_t sc_pm_ioh;
143};
144
145
146int cs428x_round_blocksize(void *, int, int, const audio_params_t *);
147int cs428x_get_props(void *);
148int cs428x_attach_codec(void *, struct ac97_codec_if *);
149int cs428x_read_codec(void *, u_int8_t, u_int16_t *);
150int cs428x_write_codec(void *, u_int8_t, u_int16_t);

--- 33 unchanged lines hidden ---
148};
149
150
151int cs428x_round_blocksize(void *, int, int, const audio_params_t *);
152int cs428x_get_props(void *);
153int cs428x_attach_codec(void *, struct ac97_codec_if *);
154int cs428x_read_codec(void *, u_int8_t, u_int16_t *);
155int cs428x_write_codec(void *, u_int8_t, u_int16_t);

--- 33 unchanged lines hidden ---