Use dynamic major number allocation.
This commit is contained in:
parent
0b42f34059
commit
78b7c8d68d
@ -42,7 +42,6 @@
|
||||
74 *ccd concatenated disk
|
||||
76 scc IBM Smart Capture Card (ohashi@mickey.ai.kyutech.ac.jp)
|
||||
77 - -
|
||||
78 pci PCI bus
|
||||
79 *ipl IP Filter
|
||||
80 xdcp Assigned to Chris Ficklin <chris@serengeti.com>
|
||||
83 can CAN16-2 CAN-PC Interface
|
||||
|
@ -67,12 +67,6 @@ static int pci_conf_match(struct pci_match_conf *matches, int num_matches,
|
||||
struct pci_conf *match_buf);
|
||||
static d_ioctl_t pci_ioctl;
|
||||
|
||||
#if __FreeBSD_version < 500000
|
||||
#define PCI_CDEV 78
|
||||
#else
|
||||
#define PCI_CDEV MAJOR_AUTO
|
||||
#endif
|
||||
|
||||
struct cdevsw pcicdev = {
|
||||
.d_version = D_VERSION,
|
||||
.d_flags = D_NEEDGIANT,
|
||||
@ -80,7 +74,6 @@ struct cdevsw pcicdev = {
|
||||
.d_close = pci_close,
|
||||
.d_ioctl = pci_ioctl,
|
||||
.d_name = "pci",
|
||||
.d_maj = PCI_CDEV,
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -105,7 +105,6 @@ static struct cdevsw tga_cdevsw = {
|
||||
.d_ioctl = pcigfb_ioctl,
|
||||
.d_mmap = pcigfb_mmap,
|
||||
.d_name = "tga",
|
||||
.d_maj = -1,
|
||||
};
|
||||
|
||||
#endif /* FB_INSTALL_CDEV */
|
||||
|
@ -777,7 +777,6 @@ cryptoioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread
|
||||
return (error);
|
||||
}
|
||||
|
||||
#define CRYPTO_MAJOR 70 /* from openbsd */
|
||||
static struct cdevsw crypto_cdevsw = {
|
||||
.d_version = D_VERSION,
|
||||
.d_flags = D_NEEDGIANT,
|
||||
@ -786,7 +785,6 @@ static struct cdevsw crypto_cdevsw = {
|
||||
.d_write = cryptowrite,
|
||||
.d_ioctl = cryptoioctl,
|
||||
.d_name = "crypto",
|
||||
.d_maj = CRYPTO_MAJOR,
|
||||
};
|
||||
static struct cdev *crypto_dev;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user