cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

leds.c (254B)


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