envy24.c (267581) | envy24.c (274035) |
---|---|
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 --- 25 unchanged lines hidden (view full) --- 34#include <dev/sound/pci/spicds.h> 35#include <dev/sound/pci/envy24.h> 36 37#include <dev/pci/pcireg.h> 38#include <dev/pci/pcivar.h> 39 40#include "mixer_if.h" 41 | 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 --- 25 unchanged lines hidden (view full) --- 34#include <dev/sound/pci/spicds.h> 35#include <dev/sound/pci/envy24.h> 36 37#include <dev/pci/pcireg.h> 38#include <dev/pci/pcivar.h> 39 40#include "mixer_if.h" 41 |
42SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/envy24.c 267581 2014-06-17 16:07:57Z jhb $"); | 42SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/envy24.c 274035 2014-11-03 11:11:45Z bapt $"); |
43 44static MALLOC_DEFINE(M_ENVY24, "envy24", "envy24 audio"); 45 46/* -------------------------------------------------------------------- */ 47 48struct sc_info; 49 50#define ENVY24_PLAY_CHNUM 10 --- 2634 unchanged lines hidden (view full) --- 2685 DEVMETHOD(device_attach, envy24_pci_attach), 2686 DEVMETHOD(device_detach, envy24_pci_detach), 2687 { 0, 0 } 2688}; 2689 2690static driver_t envy24_driver = { 2691 "pcm", 2692 envy24_methods, | 43 44static MALLOC_DEFINE(M_ENVY24, "envy24", "envy24 audio"); 45 46/* -------------------------------------------------------------------- */ 47 48struct sc_info; 49 50#define ENVY24_PLAY_CHNUM 10 --- 2634 unchanged lines hidden (view full) --- 2685 DEVMETHOD(device_attach, envy24_pci_attach), 2686 DEVMETHOD(device_detach, envy24_pci_detach), 2687 { 0, 0 } 2688}; 2689 2690static driver_t envy24_driver = { 2691 "pcm", 2692 envy24_methods, |
2693#if __FreeBSD_version > 500000 | |
2694 PCM_SOFTC_SIZE, | 2693 PCM_SOFTC_SIZE, |
2695#else 2696 sizeof(struct snddev_info), 2697#endif | |
2698}; 2699 2700DRIVER_MODULE(snd_envy24, pci, envy24_driver, pcm_devclass, 0, 0); 2701MODULE_DEPEND(snd_envy24, sound, SOUND_MINVER, SOUND_PREFVER, SOUND_MAXVER); 2702MODULE_DEPEND(snd_envy24, snd_spicds, 1, 1, 1); 2703MODULE_VERSION(snd_envy24, 1); | 2694}; 2695 2696DRIVER_MODULE(snd_envy24, pci, envy24_driver, pcm_devclass, 0, 0); 2697MODULE_DEPEND(snd_envy24, sound, SOUND_MINVER, SOUND_PREFVER, SOUND_MAXVER); 2698MODULE_DEPEND(snd_envy24, snd_spicds, 1, 1, 1); 2699MODULE_VERSION(snd_envy24, 1); |