Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
44 lines
948 B
C
44 lines
948 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ALPHA_AGP_BACKEND_H
|
|
#define _ALPHA_AGP_BACKEND_H 1
|
|
|
|
typedef union _alpha_agp_mode {
|
|
struct {
|
|
u32 rate : 3;
|
|
u32 reserved0 : 1;
|
|
u32 fw : 1;
|
|
u32 fourgb : 1;
|
|
u32 reserved1 : 2;
|
|
u32 enable : 1;
|
|
u32 sba : 1;
|
|
u32 reserved2 : 14;
|
|
u32 rq : 8;
|
|
} bits;
|
|
u32 lw;
|
|
} alpha_agp_mode;
|
|
|
|
typedef struct _alpha_agp_info {
|
|
struct pci_controller *hose;
|
|
struct {
|
|
dma_addr_t bus_base;
|
|
unsigned long size;
|
|
void *sysdata;
|
|
} aperture;
|
|
alpha_agp_mode capability;
|
|
alpha_agp_mode mode;
|
|
void *private;
|
|
struct alpha_agp_ops *ops;
|
|
} alpha_agp_info;
|
|
|
|
struct alpha_agp_ops {
|
|
int (*setup)(alpha_agp_info *);
|
|
void (*cleanup)(alpha_agp_info *);
|
|
int (*configure)(alpha_agp_info *);
|
|
int (*bind)(alpha_agp_info *, off_t, struct agp_memory *);
|
|
int (*unbind)(alpha_agp_info *, off_t, struct agp_memory *);
|
|
unsigned long (*translate)(alpha_agp_info *, dma_addr_t);
|
|
};
|
|
|
|
|
|
#endif /* _ALPHA_AGP_BACKEND_H */
|