mirror of
				https://github.com/riscv-software-src/opensbi
				synced 2025-11-03 21:48:45 +00:00 
			
		
		
		
	Now that all of the overrides are modifying generic_platform_ops directly, remove the unused hooks and forwarding functions. The remaining members of struct platform_override match struct fdt_driver, so use that type instead. This allows a future commit to reuse the fdt_driver-based init function. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20250325234342.711447-8-samuel.holland@sifive.com Signed-off-by: Anup Patel <anup@brainfault.org>
		
			
				
	
	
		
			33 lines
		
	
	
		
			887 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			887 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * SPDX-License-Identifier: BSD-2-Clause
 | 
						|
 *
 | 
						|
 * Copyright (c) 2020 Western Digital Corporation or its affiliates.
 | 
						|
 *
 | 
						|
 * Authors:
 | 
						|
 *   Anup Patel <anup.patel@wdc.com>
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef __PLATFORM_OVERRIDE_H__
 | 
						|
#define __PLATFORM_OVERRIDE_H__
 | 
						|
 | 
						|
#include <sbi/sbi_hart.h>
 | 
						|
#include <sbi/sbi_platform.h>
 | 
						|
#include <sbi/sbi_types.h>
 | 
						|
#include <sbi_utils/fdt/fdt_driver.h>
 | 
						|
 | 
						|
bool generic_cold_boot_allowed(u32 hartid);
 | 
						|
int generic_nascent_init(void);
 | 
						|
int generic_early_init(bool cold_boot);
 | 
						|
int generic_final_init(bool cold_boot);
 | 
						|
int generic_extensions_init(struct sbi_hart_features *hfeatures);
 | 
						|
int generic_domains_init(void);
 | 
						|
int generic_pmu_init(void);
 | 
						|
uint64_t generic_pmu_xlate_to_mhpmevent(uint32_t event_idx, uint64_t data);
 | 
						|
u64 generic_tlbr_flush_limit(void);
 | 
						|
u32 generic_tlb_num_entries(void);
 | 
						|
int generic_mpxy_init(void);
 | 
						|
 | 
						|
extern struct sbi_platform_operations generic_platform_ops;
 | 
						|
 | 
						|
#endif
 |