From 8b455f8d05da8846a0ac726eb2abdde3aebe043b Mon Sep 17 00:00:00 2001 From: Cameron Grant Date: Wed, 5 Apr 2000 00:38:00 +0000 Subject: [PATCH] move buffer size definition to .c file for consistency, and reduce it to 4k --- sys/dev/sound/pci/es137x.c | 4 ++++ sys/dev/sound/pci/es137x.h | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/sound/pci/es137x.c b/sys/dev/sound/pci/es137x.c index 4bea25ef362..46975ea87d3 100644 --- a/sys/dev/sound/pci/es137x.c +++ b/sys/dev/sound/pci/es137x.c @@ -69,6 +69,8 @@ SYSCTL_INT(_debug, OID_AUTO, es_debug, CTLFLAG_RW, &debug, 0, ""); #define ES1371_PCI_ID 0x13711274 #define ES1371_PCI_ID2 0x13713274 +#define ES_BUFFSIZE 4096 + /* device private data */ struct es_info; @@ -85,6 +87,7 @@ struct es_info { bus_space_handle_t sh; bus_dma_tag_t parent_dmat; + device_t dev; int num; /* Contents of board's registers */ u_long ctrl; @@ -733,6 +736,7 @@ es_pci_attach(device_t dev) } bzero(es, sizeof *es); + es->dev = dev; mapped = 0; data = pci_read_config(dev, PCIR_COMMAND, 2); data |= (PCIM_CMD_PORTEN|PCIM_CMD_MEMEN|PCIM_CMD_BUSMASTEREN); diff --git a/sys/dev/sound/pci/es137x.h b/sys/dev/sound/pci/es137x.h index e5b4991b612..076fe3c01a1 100644 --- a/sys/dev/sound/pci/es137x.h +++ b/sys/dev/sound/pci/es137x.h @@ -179,6 +179,5 @@ #define ES_SMPREG_VOL_ADC 0x6c #define ES_SMPREG_VOL_DAC1 0x7c #define ES_SMPREG_VOL_DAC2 0x7e -#define ES_BUFFSIZE 0x10000 /* We're PCI! Use a large buffer */ #endif