mirror of
				https://git.proxmox.com/git/fwupd
				synced 2025-11-04 05:14:20 +00:00 
			
		
		
		
	This also means we can provide common 'safe' versions for plugins to use. This makes a lot of plugins much simpler and we can delete a lot of code.
		
			
				
	
	
		
			56 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (C) 2018 Richard Hughes <richard@hughsie.com>
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: LGPL-2.1+
 | 
						|
 */
 | 
						|
 | 
						|
#include "config.h"
 | 
						|
 | 
						|
#include "fu-superio-common.h"
 | 
						|
 | 
						|
const gchar *
 | 
						|
fu_superio_ldn_to_text (guint8 ldn)
 | 
						|
{
 | 
						|
	if (ldn == SIO_LDN_FDC)
 | 
						|
		return "Floppy Disk Controller";
 | 
						|
	if (ldn == SIO_LDN_GPIO)
 | 
						|
		return "General Purpose IO";
 | 
						|
	if (ldn == SIO_LDN_PARALLEL_PORT)
 | 
						|
		return "Parallel Port";
 | 
						|
	if (ldn == SIO_LDN_UART1)
 | 
						|
		return "Serial Port 1";
 | 
						|
	if (ldn == SIO_LDN_UART2)
 | 
						|
		return "Serial Port 2";
 | 
						|
	if (ldn == SIO_LDN_UART3)
 | 
						|
		return "Serial Port 3";
 | 
						|
	if (ldn == SIO_LDN_UART4)
 | 
						|
		return "Serial Port 4";
 | 
						|
	if (ldn == SIO_LDN_SWUC)
 | 
						|
		return "System Wake-Up Control";
 | 
						|
	if (ldn == SIO_LDN_KBC_MOUSE)
 | 
						|
		return "KBC/Mouse";
 | 
						|
	if (ldn == SIO_LDN_KBC_KEYBOARD)
 | 
						|
		return "KBC/Keyboard";
 | 
						|
	if (ldn == SIO_LDN_CIR)
 | 
						|
		return "Consumer IR";
 | 
						|
	if (ldn == SIO_LDN_SMFI)
 | 
						|
		return "Shared Memory/Flash";
 | 
						|
	if (ldn == SIO_LDN_RTCT)
 | 
						|
		return "RTC-like Timer";
 | 
						|
	if (ldn == SIO_LDN_SSSP1)
 | 
						|
		return "Serial Peripheral";
 | 
						|
	if (ldn == SIO_LDN_PECI)
 | 
						|
		return "Platform Environmental Control";
 | 
						|
	if (ldn == SIO_LDN_PM1)
 | 
						|
		return "Power Management 1";
 | 
						|
	if (ldn == SIO_LDN_PM2)
 | 
						|
		return "Power Management 2";
 | 
						|
	if (ldn == SIO_LDN_PM3)
 | 
						|
		return "Power Management 3";
 | 
						|
	if (ldn == SIO_LDN_PM4)
 | 
						|
		return "Power Management 4";
 | 
						|
	if (ldn == SIO_LDN_PM5)
 | 
						|
		return "Power Management 5";
 | 
						|
	return NULL;
 | 
						|
}
 |