leds.c 273 B

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