Lines Matching defs:ID
28 const isp_ID_t ID,
32 isp_ctrl_setbit(ID, ISP_IRQ_READY_REG, ISP_IRQ_READY_BIT);
34 isp_ctrl_setbit(ID, ISP_IRQ_CLEAR_REG, ISP_IRQ_CLEAR_BIT);
36 isp_ctrl_clearbit(ID, ISP_IRQ_READY_REG,
44 /* Inspect readiness of an ISP indexed by ID */
45 unsigned int isp_is_ready(isp_ID_t ID)
47 assert(ID < N_ISP_ID);
48 return isp_ctrl_getbit(ID, ISP_SC_REG, ISP_IDLE_BIT);
51 /* Inspect sleeping of an ISP indexed by ID */
52 unsigned int isp_is_sleeping(isp_ID_t ID)
54 assert(ID < N_ISP_ID);
55 return isp_ctrl_getbit(ID, ISP_SC_REG, ISP_SLEEPING_BIT);
58 /* To be called by the host immediately before starting ISP ID. */
59 void isp_start(isp_ID_t ID)
61 assert(ID < N_ISP_ID);
64 /* Wake up ISP ID. */
65 void isp_wake(isp_ID_t ID)
67 assert(ID < N_ISP_ID);
68 isp_ctrl_setbit(ID, ISP_SC_REG, ISP_START_BIT);