Lines Matching +full:0 +full:x28000

22 /* CI slot 0 base address */
23 #define CAM0_CONFIG 0x0
24 #define CAM0_IO 0x8000
25 #define CAM0_MEM 0x10000
28 #define CAM1_CONFIG 0x20000
29 #define CAM1_IO 0x28000
30 #define CAM1_MEM 0x30000
33 #define CAM_CTRLSTAT_READ_SET 0x4980
34 #define CAM_CTRLSTAT_CLR 0x4982
36 #define BIT_CAM_STCHG (1<<0)
48 writew(0x101, ndev->bmmio0 + CAM_CTRLSTAT_CLR); in netup_ci_interrupt()
57 u16 shift = (state->nr == 1) ? CAM1_SHIFT : 0; in netup_unidvb_ci_slot_ts_ctl()
59 dev_dbg(&dev->pci_dev->dev, "%s(): CAM_CTRLSTAT=0x%x\n", in netup_unidvb_ci_slot_ts_ctl()
61 if (slot != 0) in netup_unidvb_ci_slot_ts_ctl()
65 dev_dbg(&dev->pci_dev->dev, "%s(): CAM_CTRLSTAT=0x%x done\n", in netup_unidvb_ci_slot_ts_ctl()
67 return 0; in netup_unidvb_ci_slot_ts_ctl()
77 return 0; in netup_unidvb_ci_slot_shutdown()
85 unsigned long timeout = 0; in netup_unidvb_ci_slot_reset()
86 u16 shift = (state->nr == 1) ? CAM1_SHIFT : 0; in netup_unidvb_ci_slot_reset()
87 u16 ci_stat = 0; in netup_unidvb_ci_slot_reset()
90 dev_dbg(&dev->pci_dev->dev, "%s(): CAM_CTRLSTAT_READ_SET=0x%x\n", in netup_unidvb_ci_slot_reset()
104 if (!(ci_stat & (BIT_CAM_READY << shift)) && reset_counter > 0) { in netup_unidvb_ci_slot_reset()
111 return 0; in netup_unidvb_ci_slot_reset()
119 u16 shift = (state->nr == 1) ? CAM1_SHIFT : 0; in netup_unidvb_poll_ci_slot_status()
120 u16 ci_stat = 0; in netup_unidvb_poll_ci_slot_status()
122 dev_dbg(&dev->pci_dev->dev, "%s(): CAM_CTRLSTAT_READ_SET=0x%x\n", in netup_unidvb_poll_ci_slot_status()
131 state->status = 0; in netup_unidvb_poll_ci_slot_status()
144 "%s(): addr=0x%x val=0x%x\n", __func__, addr, val); in netup_unidvb_ci_read_attribute_mem()
155 "%s(): addr=0x%x data=0x%x\n", __func__, addr, data); in netup_unidvb_ci_write_attribute_mem()
157 return 0; in netup_unidvb_ci_write_attribute_mem()
168 "%s(): addr=0x%x val=0x%x\n", __func__, addr, val); in netup_unidvb_ci_read_cam_ctl()
179 "%s(): addr=0x%x data=0x%x\n", __func__, addr, data); in netup_unidvb_ci_write_cam_ctl()
181 return 0; in netup_unidvb_ci_write_cam_ctl()
190 if (num < 0 || num > 1) { in netup_unidvb_ci_register()
198 ((num == 0) ? CAM0_CONFIG : CAM1_CONFIG); in netup_unidvb_ci_register()
200 ((num == 0) ? CAM0_IO : CAM1_IO); in netup_unidvb_ci_register()
213 &state->ca, 0, 1); in netup_unidvb_ci_register()
214 if (result < 0) { in netup_unidvb_ci_register()
223 return 0; in netup_unidvb_ci_register()
231 if (num < 0 || num > 1) { in netup_unidvb_ci_unregister()