095b2e5fcf
HEAD at this point). This will not exactly live in a vendor branch, but have the vendor backing to make it easier to exchange diffs. This will be followed by a diff which takes most of the .c files off the vendor branch in order to: - add locking - disable ALTQ3_COMPAT code (which is outdated and "un-lockable") There is work in progress to refine the configuration API. Import this "as is" now to have more exposure time before 5-STABLE. This is only the import, it will be some more days until you will actually be able to compile ALTQ support into your kernel so don't hold your breath. HEADUPs will be posted on current@ and net@ before this is actually enabled. No-objection: re(scottl), core(rwatson)
30 lines
732 B
C
30 lines
732 B
C
/* $OpenBSD: altqconf.h,v 1.1 2001/06/27 05:28:36 kjc Exp $ */
|
|
/* $NetBSD: altqconf.h,v 1.2 2001/05/30 11:57:16 mrg Exp $ */
|
|
|
|
#if defined(_KERNEL_OPT) || defined(__OpenBSD__)
|
|
|
|
#if defined(_KERNEL_OPT)
|
|
#include "opt_altq_enabled.h"
|
|
#endif
|
|
|
|
#include <sys/conf.h>
|
|
|
|
#ifdef ALTQ
|
|
#define NALTQ 1
|
|
#else
|
|
#define NALTQ 0
|
|
#endif
|
|
|
|
cdev_decl(altq);
|
|
|
|
#ifdef __OpenBSD__
|
|
#define cdev_altq_init(c,n) { \
|
|
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
|
|
(dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
|
|
(dev_type_stop((*))) enodev, 0, (dev_type_select((*))) enodev, \
|
|
(dev_type_mmap((*))) enodev }
|
|
#else
|
|
#define cdev_altq_init(x,y) cdev__oci_init(x,y)
|
|
#endif
|
|
#endif /* defined(_KERNEL_OPT) || defined(__OpenBSD__) */
|