[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1099617: linux-source: Small detail in order to use struct resource in ACPI



Package: linux-source
Severity: wishlist
Tags: upstream
X-Debbugs-Cc: corcodel.marian@gmail.com

Hi

In linux kernel exist struct resource and i think is need some improvement in
order to parse easy from ACPI table:

Original structure bellow:

struct resource {
        resource_size_t start;
        resource_size_t end;
        const char *name;
        unsigned long flags;
        unsigned long desc;
        struct resource *parent, *sibling, *child;
};

New structure proposed:
struct resource {
        resource_size_t start;
        resource_size_t end;
        const char *start_cacpi; /*Used to parse from ACPI Table */
        const char *end_cacpi; /*Used to parse from ACPI Table */
        const char *name;
        unsigned long flags;
        unsigned long desc;
        struct resource *parent, *sibling, *child;
};

New item can bee used whith string compare functions, and have glue whith bus
start , end 1byte lenght from MCFG ,ACPI table.


-- System Information:
Debian Release: 12.9
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.5+ (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)


Reply to: