Use dynamic major number allocation.
This commit is contained in:
parent
78b7c8d68d
commit
e70377df79
@ -22,7 +22,6 @@
|
||||
4 *geom GEOMetry
|
||||
19 *tw X-10 power interface
|
||||
22 *fd (/dev/stdin etc)
|
||||
30 *snd sound driver system
|
||||
32 lkmc Loadable Kernel Module Controller
|
||||
33 lkm assigned to Loadable Kernel Modules
|
||||
34 lkm assigned to Loadable Kernel Modules
|
||||
@ -54,7 +53,6 @@
|
||||
93 coda CODA filesystem.
|
||||
96 altq alternate queueing (including cbq, red, wfq)
|
||||
98 loe Loopback pseudo-ethernet (sbabkin@dcn.att.com)
|
||||
99 *ct Cronyx Tau-ISA serial adapters (driver name "ctau")
|
||||
115 dag University of Waikato DAG network capture boards
|
||||
117 *acd ATAPI CDROM
|
||||
119 *ast ATAPI tape
|
||||
|
@ -52,7 +52,6 @@ struct cdevsw dsp_cdevsw = {
|
||||
.d_poll = dsp_poll,
|
||||
.d_mmap = dsp_mmap,
|
||||
.d_name = "dsp",
|
||||
.d_maj = SND_CDEV_MAJOR,
|
||||
};
|
||||
|
||||
#ifdef USING_DEVFS
|
||||
|
@ -79,7 +79,6 @@ static struct cdevsw mixer_cdevsw = {
|
||||
.d_close = mixer_close,
|
||||
.d_ioctl = mixer_ioctl,
|
||||
.d_name = "mixer",
|
||||
.d_maj = SND_CDEV_MAJOR,
|
||||
};
|
||||
|
||||
#ifdef USING_DEVFS
|
||||
|
@ -50,7 +50,6 @@ static struct cdevsw sndstat_cdevsw = {
|
||||
.d_close = sndstat_close,
|
||||
.d_read = sndstat_read,
|
||||
.d_name = "sndstat",
|
||||
.d_maj = SND_CDEV_MAJOR,
|
||||
};
|
||||
|
||||
struct sndstat_entry {
|
||||
|
@ -152,11 +152,6 @@ nomenclature:
|
||||
struct pcm_channel *fkchan_setup(device_t dev);
|
||||
int fkchan_kill(struct pcm_channel *c);
|
||||
|
||||
/*
|
||||
* Major nuber for the sound driver.
|
||||
*/
|
||||
#define SND_CDEV_MAJOR 30
|
||||
|
||||
#define SND_MAXVCHANS 255
|
||||
|
||||
/*
|
||||
|
@ -82,7 +82,6 @@ static struct cdevsw isavga_cdevsw = {
|
||||
.d_ioctl = isavga_ioctl,
|
||||
.d_mmap = isavga_mmap,
|
||||
.d_name = VGA_DRIVER_NAME,
|
||||
.d_maj = -1,
|
||||
};
|
||||
|
||||
#endif /* FB_INSTALL_CDEV */
|
||||
|
@ -113,7 +113,6 @@ static struct cdevsw gdc_cdevsw = {
|
||||
.d_ioctl = gdcioctl,
|
||||
.d_mmap = gdcmmap,
|
||||
.d_name = DRIVER_NAME,
|
||||
.d_maj = -1,
|
||||
};
|
||||
|
||||
#endif /* FB_INSTALL_CDEV */
|
||||
|
@ -113,7 +113,6 @@ static struct cdevsw gdc_cdevsw = {
|
||||
.d_ioctl = gdcioctl,
|
||||
.d_mmap = gdcmmap,
|
||||
.d_name = DRIVER_NAME,
|
||||
.d_maj = -1,
|
||||
};
|
||||
|
||||
#endif /* FB_INSTALL_CDEV */
|
||||
|
Loading…
x
Reference in New Issue
Block a user