|
@@ -154,7 +154,7 @@ static enum policy_engine_state pe_sink_select_cap(struct pdb_config *cfg)
|
154
|
154
|
{
|
155
|
155
|
/* Transmit the request */
|
156
|
156
|
chMBPost(&pdb_prltx_mailbox, (msg_t) last_dpm_request, TIME_IMMEDIATE);
|
157
|
|
- chEvtSignal(pdb_prltx_thread, PDB_EVT_PRLTX_MSG_TX);
|
|
157
|
+ chEvtSignal(cfg->prl.tx_thread, PDB_EVT_PRLTX_MSG_TX);
|
158
|
158
|
eventmask_t evt = chEvtWaitAny(PDB_EVT_PE_TX_DONE | PDB_EVT_PE_TX_ERR
|
159
|
159
|
| PDB_EVT_PE_RESET);
|
160
|
160
|
/* Don't free the request; we might need it again */
|
|
@@ -428,7 +428,7 @@ static enum policy_engine_state pe_sink_get_source_cap(struct pdb_config *cfg)
|
428
|
428
|
| PD_SPECREV_2_0 | PD_POWERROLE_SINK | PD_NUMOBJ(0);
|
429
|
429
|
/* Transmit the Get_Source_Cap */
|
430
|
430
|
chMBPost(&pdb_prltx_mailbox, (msg_t) get_source_cap, TIME_IMMEDIATE);
|
431
|
|
- chEvtSignal(pdb_prltx_thread, PDB_EVT_PRLTX_MSG_TX);
|
|
431
|
+ chEvtSignal(cfg->prl.tx_thread, PDB_EVT_PRLTX_MSG_TX);
|
432
|
432
|
eventmask_t evt = chEvtWaitAny(PDB_EVT_PE_TX_DONE | PDB_EVT_PE_TX_ERR
|
433
|
433
|
| PDB_EVT_PE_RESET);
|
434
|
434
|
/* Free the sent message */
|
|
@@ -455,7 +455,7 @@ static enum policy_engine_state pe_sink_give_sink_cap(struct pdb_config *cfg)
|
455
|
455
|
|
456
|
456
|
/* Transmit our capabilities */
|
457
|
457
|
chMBPost(&pdb_prltx_mailbox, (msg_t) snk_cap, TIME_IMMEDIATE);
|
458
|
|
- chEvtSignal(pdb_prltx_thread, PDB_EVT_PRLTX_MSG_TX);
|
|
458
|
+ chEvtSignal(cfg->prl.tx_thread, PDB_EVT_PRLTX_MSG_TX);
|
459
|
459
|
eventmask_t evt = chEvtWaitAny(PDB_EVT_PE_TX_DONE | PDB_EVT_PE_TX_ERR
|
460
|
460
|
| PDB_EVT_PE_RESET);
|
461
|
461
|
|
|
@@ -522,7 +522,7 @@ static enum policy_engine_state pe_sink_soft_reset(struct pdb_config *cfg)
|
522
|
522
|
| PD_POWERROLE_SINK | PD_NUMOBJ(0);
|
523
|
523
|
/* Transmit the Accept */
|
524
|
524
|
chMBPost(&pdb_prltx_mailbox, (msg_t) accept, TIME_IMMEDIATE);
|
525
|
|
- chEvtSignal(pdb_prltx_thread, PDB_EVT_PRLTX_MSG_TX);
|
|
525
|
+ chEvtSignal(cfg->prl.tx_thread, PDB_EVT_PRLTX_MSG_TX);
|
526
|
526
|
eventmask_t evt = chEvtWaitAny(PDB_EVT_PE_TX_DONE | PDB_EVT_PE_TX_ERR
|
527
|
527
|
| PDB_EVT_PE_RESET);
|
528
|
528
|
/* Free the sent message */
|
|
@@ -552,7 +552,7 @@ static enum policy_engine_state pe_sink_send_soft_reset(struct pdb_config *cfg)
|
552
|
552
|
| PD_POWERROLE_SINK | PD_NUMOBJ(0);
|
553
|
553
|
/* Transmit the soft reset */
|
554
|
554
|
chMBPost(&pdb_prltx_mailbox, (msg_t) softrst, TIME_IMMEDIATE);
|
555
|
|
- chEvtSignal(pdb_prltx_thread, PDB_EVT_PRLTX_MSG_TX);
|
|
555
|
+ chEvtSignal(cfg->prl.tx_thread, PDB_EVT_PRLTX_MSG_TX);
|
556
|
556
|
eventmask_t evt = chEvtWaitAny(PDB_EVT_PE_TX_DONE | PDB_EVT_PE_TX_ERR
|
557
|
557
|
| PDB_EVT_PE_RESET);
|
558
|
558
|
/* Free the sent message */
|
|
@@ -613,7 +613,7 @@ static enum policy_engine_state pe_sink_send_reject(struct pdb_config *cfg)
|
613
|
613
|
|
614
|
614
|
/* Transmit the message */
|
615
|
615
|
chMBPost(&pdb_prltx_mailbox, (msg_t) reject, TIME_IMMEDIATE);
|
616
|
|
- chEvtSignal(pdb_prltx_thread, PDB_EVT_PRLTX_MSG_TX);
|
|
616
|
+ chEvtSignal(cfg->prl.tx_thread, PDB_EVT_PRLTX_MSG_TX);
|
617
|
617
|
eventmask_t evt = chEvtWaitAny(PDB_EVT_PE_TX_DONE | PDB_EVT_PE_TX_ERR
|
618
|
618
|
| PDB_EVT_PE_RESET);
|
619
|
619
|
|