mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
9bd54f64af
Some modules may assume "asm/setup.h" already include all headers which needed by itself. So need let "asm/setup.h" include "linux/types.h", the related error: C [M] drivers/input/joydev.o In file included from include/asm-generic/page.h:23:0, from ./arch/c6x/include/asm/page.h:9, from include/asm-generic/io.h:14, from arch/c6x/include/generated/asm/io.h:1, from drivers/input/joydev.c:15: ./arch/c6x/include/asm/setup.h:17:27: error: unknown type name 'phys_addr_t' extern int c6x_add_memory(phys_addr_t start, unsigned long size); ^ Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Signed-off-by: Mark Salter <msalter@redhat.com>
33 lines
914 B
C
33 lines
914 B
C
/*
|
|
* Port on Texas Instruments TMS320C6x architecture
|
|
*
|
|
* Copyright (C) 2004, 2009, 2010 2011 Texas Instruments Incorporated
|
|
* Author: Aurelien Jacquiot (aurelien.jacquiot@jaluna.com)
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#ifndef _ASM_C6X_SETUP_H
|
|
#define _ASM_C6X_SETUP_H
|
|
|
|
#include <uapi/asm/setup.h>
|
|
#include <linux/types.h>
|
|
|
|
#ifndef __ASSEMBLY__
|
|
extern int c6x_add_memory(phys_addr_t start, unsigned long size);
|
|
|
|
extern unsigned long ram_start;
|
|
extern unsigned long ram_end;
|
|
|
|
extern int c6x_num_cores;
|
|
extern unsigned int c6x_silicon_rev;
|
|
extern unsigned int c6x_devstat;
|
|
extern unsigned char c6x_fuse_mac[6];
|
|
|
|
extern void machine_init(unsigned long dt_ptr);
|
|
extern void time_init(void);
|
|
|
|
#endif /* !__ASSEMBLY__ */
|
|
#endif /* _ASM_C6X_SETUP_H */
|