envy24.c (170031) | envy24.c (172568) |
---|---|
1/* 2 * Copyright (c) 2001 Katsurajima Naoto <raven@katsurajima.seya.yokohama.jp> 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 --- 21 unchanged lines hidden (view full) --- 30#include <dev/sound/pci/spicds.h> 31#include <dev/sound/pci/envy24.h> 32 33#include <dev/pci/pcireg.h> 34#include <dev/pci/pcivar.h> 35 36#include "mixer_if.h" 37 | 1/* 2 * Copyright (c) 2001 Katsurajima Naoto <raven@katsurajima.seya.yokohama.jp> 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 --- 21 unchanged lines hidden (view full) --- 30#include <dev/sound/pci/spicds.h> 31#include <dev/sound/pci/envy24.h> 32 33#include <dev/pci/pcireg.h> 34#include <dev/pci/pcivar.h> 35 36#include "mixer_if.h" 37 |
38SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/envy24.c 170031 2007-05-27 19:58:39Z joel $"); | 38SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/envy24.c 172568 2007-10-12 06:03:46Z kevlo $"); |
39 40MALLOC_DEFINE(M_ENVY24, "envy24", "envy24 audio"); 41 42/* -------------------------------------------------------------------- */ 43 44struct sc_info; 45 46#define ENVY24_PLAY_CHNUM 10 --- 2409 unchanged lines hidden (view full) --- 2456 device_printf(sc->dev, 2457 "IO port register values\nCCS: 0x%lx\nDDMA: 0x%lx\nDS: 0x%lx\nMT: 0x%lx\n", 2458 pci_read_config(sc->dev, PCIR_CCS, 4), 2459 pci_read_config(sc->dev, PCIR_DDMA, 4), 2460 pci_read_config(sc->dev, PCIR_DS, 4), 2461 pci_read_config(sc->dev, PCIR_MT, 4)); 2462#endif 2463 | 39 40MALLOC_DEFINE(M_ENVY24, "envy24", "envy24 audio"); 41 42/* -------------------------------------------------------------------- */ 43 44struct sc_info; 45 46#define ENVY24_PLAY_CHNUM 10 --- 2409 unchanged lines hidden (view full) --- 2456 device_printf(sc->dev, 2457 "IO port register values\nCCS: 0x%lx\nDDMA: 0x%lx\nDS: 0x%lx\nMT: 0x%lx\n", 2458 pci_read_config(sc->dev, PCIR_CCS, 4), 2459 pci_read_config(sc->dev, PCIR_DDMA, 4), 2460 pci_read_config(sc->dev, PCIR_DS, 4), 2461 pci_read_config(sc->dev, PCIR_MT, 4)); 2462#endif 2463 |
2464 /* allocate interupt resource */ | 2464 /* allocate interrupt resource */ |
2465 sc->irqid = 0; 2466 sc->irq = bus_alloc_resource(sc->dev, SYS_RES_IRQ, &sc->irqid, 2467 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE); 2468 if (!sc->irq || 2469 snd_setup_intr(sc->dev, sc->irq, INTR_MPSAFE, envy24_intr, sc, &sc->ih)) { 2470 device_printf(sc->dev, "unable to map interrupt\n"); 2471 return ENXIO; 2472 } --- 182 unchanged lines hidden --- | 2465 sc->irqid = 0; 2466 sc->irq = bus_alloc_resource(sc->dev, SYS_RES_IRQ, &sc->irqid, 2467 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE); 2468 if (!sc->irq || 2469 snd_setup_intr(sc->dev, sc->irq, INTR_MPSAFE, envy24_intr, sc, &sc->ih)) { 2470 device_printf(sc->dev, "unable to map interrupt\n"); 2471 return ENXIO; 2472 } --- 182 unchanged lines hidden --- |