linux/include/linux/screen_info.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _SCREEN_INFO_H
#define _SCREEN_INFO_H

#include <uapi/linux/screen_info.h>

#include <linux/bits.h>

/**
 * SCREEN_INFO_MAX_RESOURCES - maximum number of resources per screen_info
 */
#define SCREEN_INFO_MAX_RESOURCES

struct pci_dev;
struct resource;

static inline bool __screen_info_has_lfb(unsigned int type)
{}

static inline u64 __screen_info_lfb_base(const struct screen_info *si)
{}

static inline void __screen_info_set_lfb_base(struct screen_info *si, u64 lfb_base)
{}

static inline u64 __screen_info_lfb_size(const struct screen_info *si, unsigned int type)
{}

static inline bool __screen_info_vbe_mode_nonvga(const struct screen_info *si)
{}

static inline unsigned int __screen_info_video_type(unsigned int type)
{}

/**
 * screen_info_video_type() - Decodes the video type from struct screen_info
 * @si: an instance of struct screen_info
 *
 * Returns:
 * A VIDEO_TYPE_ constant representing si's type of video display, or 0 otherwise.
 */
static inline unsigned int screen_info_video_type(const struct screen_info *si)
{}

ssize_t screen_info_resources(const struct screen_info *si, struct resource *r, size_t num);

#if defined(CONFIG_PCI)
void screen_info_apply_fixups(void);
struct pci_dev *screen_info_pci_dev(const struct screen_info *si);
#else
static inline void screen_info_apply_fixups(void)
{ }
static inline struct pci_dev *screen_info_pci_dev(const struct screen_info *si)
{
	return NULL;
}
#endif

extern struct screen_info screen_info;

#endif /* _SCREEN_INFO_H */