^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) // SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #include <asm/contregs.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #include <asm/sun3mmu.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) #include <asm/io.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) void sun3_leds(unsigned char byte)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) unsigned char dfc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) GET_DFC(dfc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) SET_DFC(FC_CONTROL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) SET_CONTROL_BYTE(AC_LEDS, byte);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) SET_DFC(dfc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) }