sbc.c (93816) | sbc.c (107285) |
---|---|
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 93816 2002-04-04 20:56:47Z jhb $"); | 31SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/isa/sbc.c 107285 2002-11-26 18:16:27Z cg $"); |
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 --- 19 unchanged lines hidden (view full) --- 59 int drq_rid[DRQ_MAX]; /* drq rids */ 60 struct resource *drq[DRQ_MAX]; /* drq resources */ 61 int drq_alloced[DRQ_MAX]; /* drq alloc flag */ 62 63 struct sbc_ihl ihl[IRQ_MAX]; 64 65 void *ih[IRQ_MAX]; 66 | 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 --- 19 unchanged lines hidden (view full) --- 59 int drq_rid[DRQ_MAX]; /* drq rids */ 60 struct resource *drq[DRQ_MAX]; /* drq resources */ 61 int drq_alloced[DRQ_MAX]; /* drq alloc flag */ 62 63 struct sbc_ihl ihl[IRQ_MAX]; 64 65 void *ih[IRQ_MAX]; 66 |
67 void *lock; | 67 struct mtx *lock; |
68 69 u_int32_t bd_ver; 70}; 71 72static int sbc_probe(device_t dev); 73static int sbc_attach(device_t dev); 74static void sbc_intr(void *p); 75 --- 707 unchanged lines hidden --- | 68 69 u_int32_t bd_ver; 70}; 71 72static int sbc_probe(device_t dev); 73static int sbc_attach(device_t dev); 74static void sbc_intr(void *p); 75 --- 707 unchanged lines hidden --- |