mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 12:46:14 +02:00
include: Add missing headers in a few instances
A few headers rely on indirect inclusion of <linux/types.h> or <linux/kernel.h> so add them directly. In the case of <netdev.h> add a "struct bd_info;" as well rather than the large header chain to resolve that. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
9543f05d8e
commit
675dd31a7d
@ -6,6 +6,8 @@
|
||||
#ifndef _MAILBOX_H
|
||||
#define _MAILBOX_H
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
/**
|
||||
* A mailbox is a hardware mechanism for transferring small fixed-size messages
|
||||
* and/or notifications between the CPU on which U-Boot runs and some other
|
||||
|
||||
@ -10,9 +10,12 @@
|
||||
|
||||
#ifndef _NETDEV_H_
|
||||
#define _NETDEV_H_
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <phy_interface.h>
|
||||
|
||||
struct udevice;
|
||||
struct bd_info;
|
||||
|
||||
/*
|
||||
* Board and CPU-specific initialization functions
|
||||
|
||||
@ -11,6 +11,7 @@
|
||||
#define _PHY_INTERFACE_H
|
||||
|
||||
#include <string.h>
|
||||
#include <linux/kernel.h>
|
||||
|
||||
typedef enum {
|
||||
PHY_INTERFACE_MODE_NA, /* don't touch */
|
||||
|
||||
@ -14,6 +14,8 @@
|
||||
#ifndef _SHA1_H
|
||||
#define _SHA1_H
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
#ifndef _SHA256_H
|
||||
#define _SHA256_H
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
#define SHA256_SUM_LEN 32
|
||||
#define SHA256_DER_LEN 19
|
||||
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
#ifndef _SHA512_H
|
||||
#define _SHA512_H
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
#define SHA384_SUM_LEN 48
|
||||
#define SHA384_DER_LEN 19
|
||||
#define SHA512_SUM_LEN 64
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user