Ignore:
Timestamp:
Jan 4, 2021, 10:15:17 AM (5 years ago)
Author:
Paul Smedley
Message:

Update source to linux 5.10.4 level

Location:
GPL/branches/uniaud32-next/include/linux
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/include/linux/compiler.h

    r615 r629  
    123123#define WRITE_ONCE(x, val) x=(val)
    124124#define __force
     125#define __always_unused
     126#define fallthrough                    do {} while (0)  /* fallthrough */
    125127#endif /* __LINUX_COMPILER_H */
  • GPL/branches/uniaud32-next/include/linux/completion.h

    r625 r629  
    2121};
    2222
     23#define DECLARE_COMPLETION_ONSTACK(work)        struct completion work;
    2324/**
    2425 * init_completion - Initialize a dynamically allocated completion
  • GPL/branches/uniaud32-next/include/linux/ktime.h

    r615 r629  
    55#include <linux/jiffies.h>
    66
    7 /*
    8  * ktime_t:
    9  *
    10  * A single 64-bit variable is used to store the hrtimers
    11  * internal representation of time values in scalar nanoseconds. The
    12  * design plays out best on 64-bit CPUs, where most conversions are
    13  * NOPs and most arithmetic ktime_t operations are plain arithmetic
    14  * operations.
    15  *
    16  */
    17 union ktime {
    18         s64     tv64;
    19 };
     7/* Nanosecond scalar representation for kernel time values */
     8typedef s64     ktime_t;
    209
    21 typedef union ktime ktime_t;            /* Kill this */
    2210#define ktime_get_ts(x) do_posix_clock_monotonic_gettime(x)
    2311/* Map the ktime_t to timespec conversion to ns_to_timespec function */
    24 #define ktime_to_timespec(kt)           ns_to_timespec((kt).tv64)
    25 #define ktime_get_ts64 ktime_get_ts
     12#define ktime_to_timespec(kt)   ns_to_timespec((kt).tv64)
     13#define ktime_get_ts64          ktime_get_ts
     14#define ktime_get_raw_ts64      getrawmonotonic
     15#define ktime_get_real_ts64     getnstimeofday
     16
     17/* Map the ktime_t to timespec conversion to ns_to_timespec function */
     18#define ktime_to_timespec64(kt)         ns_to_timespec64((kt))
    2619#include <linux/timekeeping.h>
    2720
  • GPL/branches/uniaud32-next/include/linux/leds.h

    r615 r629  
    22#define _LINUX_LEDS_H
    33
     4/* This is obsolete/useless. We now support variable maximum brightness. */
     5enum led_brightness {
     6        LED_OFF         = 0,
     7        LED_ON          = 1,
     8        LED_HALF        = 127,
     9        LED_FULL        = 255,
     10};
     11
     12struct led_classdev {
     13        const char              *name;
     14        enum led_brightness      brightness;
     15        enum led_brightness      max_brightness;
     16        int                      flags;
     17        struct device           *dev;
     18};
    419
    520#endif /* _LINUX_LEDS_H */
  • GPL/branches/uniaud32-next/include/linux/pci.h

    r625 r629  
    783783        .subvendor = (subvend), .subdevice = (subdev)
    784784
     785int pci_status_get_and_clear_errors(struct pci_dev *pdev);
     786#define PCI_STATUS_ERROR_BITS (PCI_STATUS_DETECTED_PARITY  | \
     787                               PCI_STATUS_SIG_SYSTEM_ERROR | \
     788                               PCI_STATUS_REC_MASTER_ABORT | \
     789                               PCI_STATUS_REC_TARGET_ABORT | \
     790                               PCI_STATUS_SIG_TARGET_ABORT | \
     791                               PCI_STATUS_PARITY)
    785792
    786793#endif /* LINUX_PCI_H */
  • GPL/branches/uniaud32-next/include/linux/pm_qos.h

    r615 r629  
    8686#endif /* >= 2.6.19 */
    8787
     88static inline s32 cpu_latency_qos_limit(void) { return INT_MAX; }
     89static inline bool cpu_latency_qos_request_active(struct pm_qos_request *req)
     90{
     91        return false;
     92}
     93static inline void cpu_latency_qos_add_request(struct pm_qos_request *req,
     94                                               s32 value) {}
     95static inline void cpu_latency_qos_update_request(struct pm_qos_request *req,
     96                                                  s32 new_value) {}
     97static inline void cpu_latency_qos_remove_request(struct pm_qos_request *req) {}
     98
    8899#endif /* _LINUX_PM_QOS_H */
  • GPL/branches/uniaud32-next/include/linux/proc_fs.h

    r625 r629  
    88 * The proc filesystem constants/structures
    99 */
     10
     11struct proc_ops {
     12        int     (*proc_open)(struct inode *, struct file *);
     13        ssize_t (*proc_read)(struct file *, char __user *, size_t, loff_t *);
     14        ssize_t (*proc_write)(struct file *, const char __user *, size_t, loff_t *);
     15        loff_t  (*proc_lseek)(struct file *, loff_t, int);
     16        int     (*proc_release)(struct inode *, struct file *);
     17        __poll_t (*proc_poll)(struct file *, struct poll_table_struct *);
     18        long    (*proc_ioctl)(struct file *, unsigned int, unsigned long);
     19#ifdef CONFIG_COMPAT
     20        long    (*proc_compat_ioctl)(struct file *, unsigned int, unsigned long);
     21#endif
     22        int     (*proc_mmap)(struct file *, struct vm_area_struct *);
     23        unsigned long (*proc_get_unmapped_area)(struct file *, unsigned long, unsigned long, unsigned long, unsigned long);
     24};
    1025
    1126/*
  • GPL/branches/uniaud32-next/include/linux/types.h

    r615 r629  
    148148typedef unsigned __poll_t;
    149149typedef u32 phys_addr_t;
    150 
     150typedef s64                     int64_t;
    151151#endif /* _LINUX_TYPES_H */
Note: See TracChangeset for help on using the changeset viewer.