leds.c 254 B

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