sbc.c (107285) | sbc.c (108064) |
---|---|
1/* 2 * Copyright (c) 1999 Seigo Tanimura 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <dev/sound/chip.h> 28#include <dev/sound/pcm/sound.h> 29#include <dev/sound/isa/sb.h> 30 | 1/* 2 * Copyright (c) 1999 Seigo Tanimura 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <dev/sound/chip.h> 28#include <dev/sound/pcm/sound.h> 29#include <dev/sound/isa/sb.h> 30 |
31SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/isa/sbc.c 107285 2002-11-26 18:16:27Z cg $"); | 31SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/isa/sbc.c 108064 2002-12-18 22:53:24Z semenu $"); |
32 33#define IO_MAX 3 34#define IRQ_MAX 1 35#define DRQ_MAX 2 36#define INTR_MAX 2 37 38struct sbc_softc; 39 --- 101 unchanged lines hidden (view full) --- 141 return bus_space_read_1(rman_get_bustag(io), 142 rman_get_bushandle(io), 143 reg); 144} 145 146static void 147sb_wr(struct resource *io, int reg, u_int8_t val) 148{ | 32 33#define IO_MAX 3 34#define IRQ_MAX 1 35#define DRQ_MAX 2 36#define INTR_MAX 2 37 38struct sbc_softc; 39 --- 101 unchanged lines hidden (view full) --- 141 return bus_space_read_1(rman_get_bustag(io), 142 rman_get_bushandle(io), 143 reg); 144} 145 146static void 147sb_wr(struct resource *io, int reg, u_int8_t val) 148{ |
149 return bus_space_write_1(rman_get_bustag(io), 150 rman_get_bushandle(io), 151 reg, val); | 149 bus_space_write_1(rman_get_bustag(io), 150 rman_get_bushandle(io), 151 reg, val); |
152} 153 154static int 155sb_dspready(struct resource *io) 156{ 157 return ((sb_rd(io, SBDSP_STATUS) & 0x80) == 0); 158} 159 --- 623 unchanged lines hidden --- | 152} 153 154static int 155sb_dspready(struct resource *io) 156{ 157 return ((sb_rd(io, SBDSP_STATUS) & 0x80) == 0); 158} 159 --- 623 unchanged lines hidden --- |