1
0
Files
irix-657m-src/stand/arcs/ide/fforward/hal2/hal2_unreset.c
2022-09-29 17:59:04 +03:00

19 lines
287 B
C

/*
* hal2_unreset.c -
* code to unreset the hal2 chip
*/
#include <sys/sbd.h>
#include <sys/hal2.h>
void
hal2_unreset()
{
volatile __uint32_t *isrp = (__uint32_t *) PHYS_TO_K1(HAL2_ISR);
/* Set up the ISR */
*isrp = HAL2_ISR_CODEC_RESET_N|HAL2_ISR_GLOBAL_RESET_N;
}