File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -510,13 +510,13 @@ static void ahci_isr(int irqno, void *param)
510510{
511511 int id ;
512512 rt_uint32_t isr ;
513- bitmap_t int_map ;
513+ rt_bitmap_t int_map ;
514514 struct rt_ahci_port * port ;
515515 struct rt_ahci_host * host = param ;
516516
517517 int_map = HWREG32 (host -> regs + RT_AHCI_HBA_INTS );
518518
519- bitmap_for_each_set_bit (& int_map , id , host -> ports_nr )
519+ rt_bitmap_for_each_set_bit (& int_map , id , host -> ports_nr )
520520 {
521521 port = & host -> ports [id ];
522522
@@ -535,7 +535,7 @@ static void ahci_isr(int irqno, void *param)
535535 HWREG32 (port -> regs + RT_AHCI_PORT_INTS ) = isr ;
536536 }
537537
538- HWREG32 (host -> regs + RT_AHCI_HBA_INTS ) = isr ;
538+ HWREG32 (host -> regs + RT_AHCI_HBA_INTS ) = int_map ;
539539}
540540
541541rt_err_t rt_ahci_host_register (struct rt_ahci_host * host )
You can’t perform that action at this time.
0 commit comments