move parametric defines and structure definitions from .h to .c

This commit is contained in:
Cameron Grant 2000-12-25 02:49:28 +00:00
parent a6b5683876
commit b87eb3b531
2 changed files with 13 additions and 12 deletions

View File

@ -40,9 +40,22 @@
#define SEGS_PER_CHAN (NSEGS/2)
#define TIMEOUT 50
#define VIA_BUFFSIZE 0x4000
#undef DEB
#define DEB(x)
/* we rely on this struct being packed to 64 bits */
struct via_dma_op {
u_int32_t ptr;
u_int32_t flags;
#define VIA_DMAOP_EOL 0x80000000
#define VIA_DMAOP_FLAG 0x40000000
#define VIA_DMAOP_STOP 0x20000000
#define VIA_DMAOP_COUNT(x) ((x)&0x00FFFFFF)
};
struct via_info;
struct via_chinfo {

View File

@ -49,15 +49,6 @@
* ftp://ftp.alsa-project.org/pub/manuals/ad/AD1881_0.pdf (example AC'97 codec)
*/
struct via_dma_op {
u_int32_t ptr;
u_int32_t flags;
#define VIA_DMAOP_EOL 0x80000000
#define VIA_DMAOP_FLAG 0x40000000
#define VIA_DMAOP_STOP 0x20000000
#define VIA_DMAOP_COUNT(x) ((x)&0x00FFFFFF)
};
#define VIA_PCICONF_MISC 0x41
#define VIA_PCICONF_ACLINKENAB 0x80 /* ac link enab */
#define VIA_PCICONF_ACNOTRST 0x40 /* ~(ac reset) */
@ -102,7 +93,4 @@ struct via_dma_op {
#define AC97_REG_EXT_DAC_RATE 0x2C
#define AC97_REG_EXT_ADC_RATE 0x32
#define TIMEOUT 50
#define VIA_BUFFSIZE 0x4000
#endif /* _VIA_H */