vibes.c (2414e86439f4c53aff73d1afe0453fb48145d9e5) vibes.c (43cd61606b6bfae52bb09856277751103bfa28fd)
1/*-
2 * Copyright (c) 2001 Orion Hodson <O.Hodson@cs.ucl.ac.uk>
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

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

754 DEB(printf("sv_attach: initial dmac 0x%08x\n", data));
755
756 /* Initialize DMA_A and DMA_C */
757 pci_write_config(dev, SV_PCI_DMAA, SV_PCI_DMA_EXTENDED, 4);
758 pci_write_config(dev, SV_PCI_DMAC, 0, 4);
759
760 /* Register IRQ handler */
761 sc->irqid = 0;
1/*-
2 * Copyright (c) 2001 Orion Hodson <O.Hodson@cs.ucl.ac.uk>
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

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

754 DEB(printf("sv_attach: initial dmac 0x%08x\n", data));
755
756 /* Initialize DMA_A and DMA_C */
757 pci_write_config(dev, SV_PCI_DMAA, SV_PCI_DMA_EXTENDED, 4);
758 pci_write_config(dev, SV_PCI_DMAC, 0, 4);
759
760 /* Register IRQ handler */
761 sc->irqid = 0;
762 sc->irq = bus_alloc_resource(dev, SYS_RES_IRQ, &sc->irqid,
763 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE);
762 sc->irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc->irqid,
763 RF_ACTIVE | RF_SHAREABLE);
764 if (!sc->irq ||
765 snd_setup_intr(dev, sc->irq, 0, sv_intr, sc, &sc->ih)) {
766 device_printf(dev, "sv_attach: Unable to map interrupt\n");
767 goto fail;
768 }
769
770 sc->bufsz = pcm_getbuffersize(dev, 4096, SV_DEFAULT_BUFSZ, 65536);
771 if (bus_dma_tag_create(/*parent*/bus_get_dma_tag(dev), /*alignment*/2,

--- 174 unchanged lines hidden ---
764 if (!sc->irq ||
765 snd_setup_intr(dev, sc->irq, 0, sv_intr, sc, &sc->ih)) {
766 device_printf(dev, "sv_attach: Unable to map interrupt\n");
767 goto fail;
768 }
769
770 sc->bufsz = pcm_getbuffersize(dev, 4096, SV_DEFAULT_BUFSZ, 65536);
771 if (bus_dma_tag_create(/*parent*/bus_get_dma_tag(dev), /*alignment*/2,

--- 174 unchanged lines hidden ---