Deleted Added
full compact
26c26
< * $FreeBSD: head/sys/dev/sound/isa/sbc.c 58385 2000-03-20 15:34:27Z cg $
---
> * $FreeBSD: head/sys/dev/sound/isa/sbc.c 60711 2000-05-19 15:41:52Z nyan $
88a89,102
> #ifdef PC98 /* I/O address table for PC98 */
> static bus_addr_t pcm_iat[] = {
> 0x000, 0x100, 0x200, 0x300, 0x400, 0x500, 0x600, 0x700,
> 0x800, 0x900, 0xa00, 0xb00, 0xc00, 0xd00, 0xe00, 0xf00
> };
> static bus_addr_t midi_iat[] = {
> 0x000, 0x100
> };
> static bus_addr_t opl_iat[] = {
> 0x000, 0x100, 0x200, 0x300
> };
> static bus_addr_t *sb_iat[] = { pcm_iat, midi_iat, opl_iat };
> #endif
>
236a251,254
> #ifdef PC98
> io = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid,
> pcm_iat, 16, RF_ACTIVE);
> #else
238a257
> #endif
239a259,261
> #ifdef PC98
> isa_load_resourcev(io, pcm_iat, 16);
> #endif
326a349,362
> #ifdef PC98
> /* SB16 in PC98 use different IRQ table */
> if (irq == 3) x = 1;
> else if (irq == 5) x = 8;
> else if (irq == 10) x = 2;
> else if (irq == 12) x = 4;
> if (x == -1) {
> err = "bad irq (3/5/10/12 valid)";
> goto bad;
> }
> else sb_setmixer(scp->io[0], IRQ_NR, x);
> /* SB16 in PC98 use different dma setting */
> sb_setmixer(scp->io[0], DMA_NR, dh == 0 ? 1 : 2);
> #else
336a373
> #endif
465a503,505
> #ifdef PC98
> int i;
> #endif
471a512,516
> #ifdef PC98
> rid_max = 0;
> for (i = 0; i < IO_MAX; i++)
> rid_max += io_range[i];
> #else
472a518
> #endif
572a619,631
> #ifdef PC98
> scp->io_rid[i] = i > 0 ?
> scp->io_rid[i - 1] + io_range[i - 1] : 0;
> scp->io[i] = isa_alloc_resourcev(scp->dev,
> SYS_RES_IOPORT,
> &scp->io_rid[i],
> sb_iat[i],
> io_range[i],
> RF_ACTIVE);
> if (scp->io[i] != NULL)
> isa_load_resourcev(scp->io[i], sb_iat[i],
> io_range[i]);
> #else
575a635
> #endif