leds.c 218 B

1234567891011121314
  1. #include <asm/contregs.h>
  2. #include <asm/sun3mmu.h>
  3. #include <asm/io.h>
  4. void sun3_leds(unsigned char byte)
  5. {
  6. unsigned char dfc;
  7. GET_DFC(dfc);
  8. SET_DFC(FC_CONTROL);
  9. SET_CONTROL_BYTE(AC_LEDS, byte);
  10. SET_DFC(dfc);
  11. }