envy24ht.c (170207) | envy24ht.c (172568) |
---|---|
1/* 2 * Copyright (c) 2006 Konstantin Dimitrov <kosio.dimitrov@gmail.com> 3 * Copyright (c) 2001 Katsurajima Naoto <raven@katsurajima.seya.yokohama.jp> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 33 unchanged lines hidden (view full) --- 42#include <dev/sound/pci/spicds.h> 43#include <dev/sound/pci/envy24ht.h> 44 45#include <dev/pci/pcireg.h> 46#include <dev/pci/pcivar.h> 47 48#include "mixer_if.h" 49 | 1/* 2 * Copyright (c) 2006 Konstantin Dimitrov <kosio.dimitrov@gmail.com> 3 * Copyright (c) 2001 Katsurajima Naoto <raven@katsurajima.seya.yokohama.jp> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 33 unchanged lines hidden (view full) --- 42#include <dev/sound/pci/spicds.h> 43#include <dev/sound/pci/envy24ht.h> 44 45#include <dev/pci/pcireg.h> 46#include <dev/pci/pcivar.h> 47 48#include "mixer_if.h" 49 |
50SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/envy24ht.c 170207 2007-06-02 17:28:26Z ariff $"); | 50SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/envy24ht.c 172568 2007-10-12 06:03:46Z kevlo $"); |
51 52MALLOC_DEFINE(M_ENVY24HT, "envy24ht", "envy24ht audio"); 53 54/* -------------------------------------------------------------------- */ 55 56struct sc_info; 57 58#define ENVY24HT_PLAY_CHNUM 8 --- 2352 unchanged lines hidden (view full) --- 2411 sc->mth = rman_get_bushandle(sc->mt); 2412#if(0) 2413 device_printf(sc->dev, 2414 "IO port register values\nCCS: 0x%lx\nMT: 0x%lx\n", 2415 pci_read_config(sc->dev, PCIR_CCS, 4), 2416 pci_read_config(sc->dev, PCIR_MT, 4)); 2417#endif 2418 | 51 52MALLOC_DEFINE(M_ENVY24HT, "envy24ht", "envy24ht audio"); 53 54/* -------------------------------------------------------------------- */ 55 56struct sc_info; 57 58#define ENVY24HT_PLAY_CHNUM 8 --- 2352 unchanged lines hidden (view full) --- 2411 sc->mth = rman_get_bushandle(sc->mt); 2412#if(0) 2413 device_printf(sc->dev, 2414 "IO port register values\nCCS: 0x%lx\nMT: 0x%lx\n", 2415 pci_read_config(sc->dev, PCIR_CCS, 4), 2416 pci_read_config(sc->dev, PCIR_MT, 4)); 2417#endif 2418 |
2419 /* allocate interupt resource */ | 2419 /* allocate interrupt resource */ |
2420 sc->irqid = 0; 2421 sc->irq = bus_alloc_resource(sc->dev, SYS_RES_IRQ, &sc->irqid, 2422 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE); 2423 if (!sc->irq || 2424 snd_setup_intr(sc->dev, sc->irq, 0, envy24ht_intr, sc, &sc->ih)) { 2425 device_printf(sc->dev, "unable to map interrupt\n"); 2426 return ENXIO; 2427 } --- 174 unchanged lines hidden --- | 2420 sc->irqid = 0; 2421 sc->irq = bus_alloc_resource(sc->dev, SYS_RES_IRQ, &sc->irqid, 2422 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE); 2423 if (!sc->irq || 2424 snd_setup_intr(sc->dev, sc->irq, 0, envy24ht_intr, sc, &sc->ih)) { 2425 device_printf(sc->dev, "unable to map interrupt\n"); 2426 return ENXIO; 2427 } --- 174 unchanged lines hidden --- |