Lines Matching +full:0 +full:xfff

53 #define	ADC_HC0		0x00		/* Ctrl reg for hardware triggers */
54 #define ADC_HC1 0x04 /* Ctrl reg for hardware triggers */
56 #define HC_ADCH_M 0x1f /* Input Channel Select Mask */
57 #define HC_ADCH_S 0 /* Input Channel Select Shift */
58 #define ADC_HS 0x08 /* Status register for HW triggers */
59 #define HS_COCO0 (1 << 0) /* Conversion Complete Flag */
61 #define ADC_R0 0x0C /* Data result reg for HW triggers */
62 #define ADC_R1 0x10 /* Data result reg for HW triggers */
63 #define ADC_CFG 0x14 /* Configuration register */
65 #define CFG_AVGS_M 0x3 /* Hardware Average select Mask */
68 #define CFG_REFSEL_M 0x3 /* Voltage Reference Select Mask */
71 #define CFG_ADSTS_M 0x3 /* Defines the sample time duration */
74 #define CFG_ADIV_M 0x3 /* Clock Divide Select */
77 #define CFG_MODE_M 0x3 /* Conversion Mode Selection Mask */
79 #define CFG_MODE_12 0x2 /* 12-bit mode */
80 #define CFG_ADICLK_M 0x3 /* Input Clock Select Mask */
81 #define CFG_ADICLK_S 0 /* Input Clock Select Shift */
82 #define ADC_GC 0x18 /* General control register */
90 #define GC_ADACKEN (1 << 0) /* Asynchronous clock output enable */
91 #define ADC_GS 0x1C /* General status register */
94 #define GS_ADACT (1 << 0) /* Conversion Active */
95 #define ADC_CV 0x20 /* Compare value register */
96 #define CV_CV2_M 0xfff /* Compare Value 2 Mask */
98 #define CV_CV1_M 0xfff /* Compare Value 1 Mask */
99 #define CV_CV1_S 0 /* Compare Value 1 Shift */
100 #define ADC_OFS 0x24 /* Offset correction value register */
102 #define OFS_M 0xfff /* Offset value Mask */
103 #define OFS_S 0 /* Offset value Shift */
104 #define ADC_CAL 0x28 /* Calibration value register */
105 #define CAL_CODE_M 0xf /* Calibration Result Value Mask */
106 #define CAL_CODE_S 0 /* Calibration Result Value Shift */
107 #define ADC_PCTL 0x30 /* Pin control register */
119 { SYS_RES_MEMORY, 0, RF_ACTIVE },
120 { SYS_RES_IRQ, 0, RF_ACTIVE },
121 { -1, 0 }
153 return (0); in adc_read()
173 return (0); in adc_enable()
191 sc->bst = rman_get_bustag(sc->res[0]); in adc_attach()
192 sc->bsh = rman_get_bushandle(sc->res[0]); in adc_attach()
220 return (0); in adc_attach()
226 { 0, 0 }
235 DRIVER_MODULE(adc, simplebus, adc_driver, 0, 0);