Changeset 763


Ignore:
Timestamp:
Apr 6, 2025, 3:30:42 AM (4 months ago)
Author:
Paul Smedley
Message:

Make it compile

Location:
GPL/branches/uniaud32-exp
Files:
1 added
33 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-exp/alsa-kernel/core/init.c

    r762 r763  
    2323
    2424#ifdef TARGET_OS2
    25 struct class *sound_class;
     25const struct class sound_class;
    2626#endif
    2727
  • GPL/branches/uniaud32-exp/alsa-kernel/core/memory.c

    r762 r763  
    1212#include <sound/pcm.h>
    1313
     14#ifndef TARGET_OS2
    1415/**
    1516 * copy_to_user_fromio - copy data from mmio-space to user-space
     
    114115}
    115116EXPORT_SYMBOL(copy_from_iter_toio);
     117#else // TARGET_OS2
     118/**
     119 * copy_to_user_fromio - copy data from mmio-space to user-space
     120 * @dst: the destination pointer on user-space
     121 * @src: the source pointer on mmio
     122 * @count: the data size to copy in bytes
     123 *
     124 * Copies the data from mmio-space to user-space.
     125 *
     126 * Return: Zero if successful, or non-zero on failure.
     127 */
     128int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count)
     129{
     130#if defined(__i386__) || defined(CONFIG_SPARC32)
     131        return copy_to_user(dst, (const void __force*)src, count) ? -EFAULT : 0;
     132#else
     133        char buf[256];
     134        while (count) {
     135                size_t c = count;
     136                if (c > sizeof(buf))
     137                        c = sizeof(buf);
     138                memcpy_fromio(buf, (void __iomem *)src, c);
     139                if (copy_to_user(dst, buf, c))
     140                        return -EFAULT;
     141                count -= c;
     142                dst += c;
     143                src += c;
     144        }
     145        return 0;
     146#endif
     147}
     148EXPORT_SYMBOL(copy_to_user_fromio);
     149
     150/**
     151 * copy_from_user_toio - copy data from user-space to mmio-space
     152 * @dst: the destination pointer on mmio-space
     153 * @src: the source pointer on user-space
     154 * @count: the data size to copy in bytes
     155 *
     156 * Copies the data from user-space to mmio-space.
     157 *
     158 * Return: Zero if successful, or non-zero on failure.
     159 */
     160int copy_from_user_toio(volatile void __iomem *dst, const void __user *src, size_t count)
     161{
     162#if defined(__i386__) || defined(CONFIG_SPARC32)
     163        return copy_from_user((void __force *)dst, src, count) ? -EFAULT : 0;
     164#else
     165        char buf[256];
     166        while (count) {
     167                size_t c = count;
     168                if (c > sizeof(buf))
     169                        c = sizeof(buf);
     170                if (copy_from_user(buf, src, c))
     171                        return -EFAULT;
     172                memcpy_toio(dst, buf, c);
     173                count -= c;
     174                dst += c;
     175                src += c;
     176        }
     177        return 0;
     178#endif
     179}
     180EXPORT_SYMBOL(copy_from_user_toio);
     181#endif // TARGET_OS2
  • GPL/branches/uniaud32-exp/alsa-kernel/core/pcm_lib.c

    r762 r763  
    20252025
    20262026/* default copy ops for write; used for both interleaved and non- modes */
     2027#ifndef TARGET_OS2
    20272028static int default_write_copy(struct snd_pcm_substream *substream,
    20282029                              int channel, unsigned long hwoff,
     
    20342035        return 0;
    20352036}
     2037#else
     2038static int default_write_copy(struct snd_pcm_substream *substream,
     2039                              int channel, unsigned long hwoff,
     2040                              void *buf, unsigned long bytes)
     2041{
     2042        if (copy_from_user(get_dma_ptr(substream->runtime, channel, hwoff),
     2043                           (void __user *)buf, bytes))
     2044                return -EFAULT;
     2045        return 0;
     2046}
     2047#endif
    20362048
    20372049/* fill silence instead of copy data; called as a transfer helper
     
    20582070
    20592071/* default copy ops for read; used for both interleaved and non- modes */
     2072#ifndef TARGET_OS2
    20602073static int default_read_copy(struct snd_pcm_substream *substream,
    20612074                             int channel, unsigned long hwoff,
     
    20812094                type = ITER_DEST;
    20822095
     2096#if 0 //FIXME
    20832097        if (in_kernel) {
    20842098                struct kvec kvec = { data, bytes };
     
    20872101                return transfer(substream, c, hwoff, &iter, bytes);
    20882102        }
    2089 
     2103#endif
    20902104        err = import_ubuf(type, (__force void __user *)data, bytes, &iter);
    20912105        if (err)
     
    20932107        return transfer(substream, c, hwoff, &iter, bytes);
    20942108}
     2109#else
     2110static int default_read_copy(struct snd_pcm_substream *substream,
     2111                             int channel, unsigned long hwoff,
     2112                             void *buf, unsigned long bytes)
     2113{
     2114        if (copy_to_user((void __user *)buf,
     2115                         get_dma_ptr(substream->runtime, channel, hwoff),
     2116                         bytes))
     2117                return -EFAULT;
     2118        return 0;
     2119}
     2120#endif
    20952121
    20962122/* call transfer function with the converted pointers and sizes;
     
    21112137        frames = frames_to_bytes(runtime, frames);
    21122138
     2139#ifndef TARGET_OS2
    21132140        return do_transfer(substream, 0, hwoff, data + off, frames, transfer,
    21142141                           in_kernel);
     2142#else
     2143        return transfer(substream, 0, hwoff, data + off, frames);
     2144#endif
    21152145}
    21162146
     
    21412171                        err = fill_silence(substream, c, hwoff, NULL, frames);
    21422172                else
     2173#ifndef TARGET_OS2
    21432174                        err = do_transfer(substream, c, hwoff, *bufs + off,
    21442175                                          frames, transfer, in_kernel);
     2176#else
     2177                        err = transfer(substream, c, hwoff, *bufs + off,
     2178                                       frames);
     2179#endif
    21452180                if (err < 0)
    21462181                        return err;
  • GPL/branches/uniaud32-exp/alsa-kernel/core/rawmidi.c

    r762 r763  
    8787#define SNDRV_RAWMIDI_IOCTL_STATUS64    _IOWR('W', 0x20, struct snd_rawmidi_status64)
    8888
     89#ifndef TARGET_OS2
    8990#define rawmidi_is_ump(rmidi) \
    9091        (IS_ENABLED(CONFIG_SND_UMP) && ((rmidi)->info_flags & SNDRV_RAWMIDI_INFO_UMP))
     92#else
     93#define rawmidi_is_ump(rmidi) \
     94        (0 && ((rmidi)->info_flags & SNDRV_RAWMIDI_INFO_UMP))
     95#endif
    9196
    9297static struct snd_rawmidi *snd_rawmidi_search(struct snd_card *card, int device)
     
    206211static inline int get_align(struct snd_rawmidi_runtime *runtime)
    207212{
     213#ifndef TARGET_OS2
    208214        if (IS_ENABLED(CONFIG_SND_UMP))
    209215                return runtime->align;
    210216        else
     217#endif
    211218                return 0;
    212219}
     
    10651072}
    10661073
    1067 #if IS_ENABLED(CONFIG_SND_UMP)
     1074#if IS_ENABLED(CONFIG_SND_UMP) || defined(CONFIG_SND_UMP)
    10681075/* inquiry of UMP endpoint and block info via control API */
    10691076static int snd_rawmidi_call_ump_ioctl(struct snd_card *card, int cmd,
     
    17961803        rmidi = entry->private_data;
    17971804        snd_iprintf(buffer, "%s\n\n", rmidi->name);
     1805#ifndef TARGET_OS2
    17981806        if (IS_ENABLED(CONFIG_SND_UMP))
    17991807                snd_iprintf(buffer, "Type: %s\n",
    18001808                            rawmidi_is_ump(rmidi) ? "UMP" : "Legacy");
     1809#endif
    18011810        if (rmidi->ops && rmidi->ops->proc_read)
    18021811                rmidi->ops->proc_read(entry, buffer);
  • GPL/branches/uniaud32-exp/alsa-kernel/core/seq/seq_clientmgr.c

    r762 r763  
    180180static struct snd_seq_client *client_load_and_use_ptr(int clientid)
    181181{
     182#ifndef TARGET_OS2
    182183        return client_use_ptr(clientid, IS_ENABLED(CONFIG_MODULES));
     184#else
     185        return client_use_ptr(clientid, 0);
     186#endif
    183187}
    184188
     
    466470        snd_seq_fifo_lock(fifo);
    467471
     472#ifndef TARGET_OS2
    468473        if (IS_ENABLED(CONFIG_SND_SEQ_UMP) && client->midi_version > 0)
    469474                aligned_size = sizeof(struct snd_seq_ump_event);
    470475        else
     476#endif
    471477                aligned_size = sizeof(struct snd_seq_event);
    472478
     
    13061312                        return -EINVAL;
    13071313
     1314#ifndef TARGET_OS2
    13081315                /* check if UMP is supported in kernel */
    13091316                if (!IS_ENABLED(CONFIG_SND_SEQ_UMP) &&
    13101317                    client_info->midi_version > 0)
     1318#endif
    13111319                        return -EINVAL;
    13121320        }
  • GPL/branches/uniaud32-exp/alsa-kernel/hda/hdac_stream.c

    r762 r763  
    881881EXPORT_SYMBOL_GPL(snd_hdac_stream_drsm_enable);
    882882
     883#ifndef TARGET_OS2
    883884/*
    884885 * snd_hdac_stream_wait_drsm - wait for HW to clear RSM for a stream
     
    902903}
    903904EXPORT_SYMBOL_GPL(snd_hdac_stream_wait_drsm);
     905#endif
    904906
    905907/**
  • GPL/branches/uniaud32-exp/alsa-kernel/include/sound/asequencer.h

    r762 r763  
    6767
    6868/* check whether the given event is a UMP event */
     69#ifndef TARGET_OS2
    6970#define snd_seq_ev_is_ump(ev) \
    7071        (IS_ENABLED(CONFIG_SND_SEQ_UMP) && ((ev)->flags & SNDRV_SEQ_EVENT_UMP))
    71 
     72#else
     73#define snd_seq_ev_is_ump(ev) \
     74        (0 && ((ev)->flags & SNDRV_SEQ_EVENT_UMP))
     75#endif
    7276/* queue sync port */
    7377#define snd_seq_queue_sync_port(q)      ((q) + 16)
  • GPL/branches/uniaud32-exp/alsa-kernel/include/sound/control.h

    r762 r763  
    161161snd_ctl_find_id_mixer(struct snd_card *card, const char *name)
    162162{
    163         struct snd_ctl_elem_id id = {};
     163        struct snd_ctl_elem_id id = {0};
    164164
    165165        id.iface = SNDRV_CTL_ELEM_IFACE_MIXER;
  • GPL/branches/uniaud32-exp/alsa-kernel/include/sound/emu10k1.h

    r762 r763  
    182182
    183183#define WC                      0x10            /* Wall Clock register                          */
     184#ifndef TARGET_OS2
    184185SUB_REG(WC, SAMPLECOUNTER,      0x03FFFFC0)     /* Sample periods elapsed since reset           */
    185186SUB_REG(WC, CURRENTCHANNEL,     0x0000003F)     /* Channel [0..63] currently being serviced     */
     
    187188                                                /* period to be serviced.                       */
    188189
     190#else
     191#define WC_SAMPLECOUNTER_MASK   0x03FFFFC0      /* Sample periods elapsed since reset           */
     192#define WC_SAMPLECOUNTER        0x14060010
     193#define WC_CURRENTCHANNEL       0x0000003F      /* Channel [0..63] currently being serviced     */
     194                                                /* NOTE: Each channel takes 1/64th of a sample  */
     195                                                /* period to be serviced.                       */
     196#endif
    189197#define HCFG                    0x14            /* Hardware config register                     */
    190198                                                /* NOTE: There is no reason to use the legacy   */
     
    257265#define HCFG_LOCKSOUNDCACHE     0x00000008      /* 1 = Cancel bustmaster accesses to soundcache */
    258266                                                /* NOTE: This should generally never be used.   */
     267#ifndef TARGET_OS2
    259268SUB_REG(HCFG, LOCKTANKCACHE,    0x00000004)     /* 1 = Cancel bustmaster accesses to tankcache  */
    260269                                                /* NOTE: This should generally never be used.   */
     270#else
     271#define HCFG_LOCKTANKCACHE_MASK 0x00000004      /* 1 = Cancel bustmaster accesses to tankcache  */
     272                                                /* NOTE: This should generally never be used.   */
     273#define HCFG_LOCKTANKCACHE      0x01020014
     274#endif
    261275#define HCFG_MUTEBUTTONENABLE   0x00000002      /* 1 = Master mute button sets AUDIOENABLE = 0. */
    262276                                                /* NOTE: This is a 'cheap' way to implement a   */
     
    421435
    422436#define CPF                     0x00            /* Current pitch and fraction register                  */
     437#ifndef TARGET_OS2
    423438SUB_REG(CPF, CURRENTPITCH,      0xffff0000)     /* Current pitch (linear, 0x4000 == unity pitch shift)  */
     439#else
     440#define CPF_CURRENTPITCH_MASK   0xffff0000      /* Current pitch (linear, 0x4000 == unity pitch shift)  */
     441#define CPF_CURRENTPITCH        0x10100000
     442#endif
    424443#define CPF_STEREO_MASK         0x00008000      /* 1 = Even channel interleave, odd channel locked      */
     444#ifndef TARGET_OS2
    425445SUB_REG(CPF, STOP,              0x00004000)     /* 1 = Current pitch forced to 0                        */
    426446                                                /* Can be set only while matching bit in SOLEx is 1     */
     447#else
     448#define CPF_STOP                0x00004000      /* 1 = Current pitch forced to 0                        */
     449#define CPF_STOP_MASK           0x00004000      /* 1 = Current pitch forced to 0                        */
     450#endif
    427451#define CPF_FRACADDRESS_MASK    0x00003fff      /* Linear fractional address of the current channel     */
    428452
    429453#define PTRX                    0x01            /* Pitch target and send A/B amounts register           */
     454#ifndef TARGET_OS2
    430455SUB_REG(PTRX, PITCHTARGET,      0xffff0000)     /* Pitch target of specified channel                    */
    431456SUB_REG(PTRX, FXSENDAMOUNT_A,   0x0000ff00)     /* Linear level of channel output sent to FX send bus A */
    432457SUB_REG(PTRX, FXSENDAMOUNT_B,   0x000000ff)     /* Linear level of channel output sent to FX send bus B */
     458#else
     459#define PTRX_PITCHTARGET_MASK   0xffff0000      /* Pitch target of specified channel                    */
     460#define PTRX_PITCHTARGET        0x10100001
     461#define PTRX_FXSENDAMOUNT_A_MASK 0x0000ff00     /* Linear level of channel output sent to FX send bus A */
     462#define PTRX_FXSENDAMOUNT_A     0x08080001
     463#define PTRX_FXSENDAMOUNT_B_MASK 0x000000ff     /* Linear level of channel output sent to FX send bus B */
     464#define PTRX_FXSENDAMOUNT_B     0x08000001
     465#endif
    433466
    434467// Note: the volumes are raw multpliers, so real 100% is impossible.
    435468#define CVCF                    0x02            /* Current volume and filter cutoff register            */
     469#ifndef TARGET_OS2
    436470SUB_REG(CVCF, CURRENTVOL,       0xffff0000)     /* Current linear volume of specified channel           */
    437471SUB_REG(CVCF, CURRENTFILTER,    0x0000ffff)     /* Current filter cutoff frequency of specified channel */
     472#else
     473#define CVCF_CURRENTVOL_MASK    0xffff0000      /* Current linear volume of specified channel           */
     474#define CVCF_CURRENTVOL         0x10100002
     475#define CVCF_CURRENTFILTER_MASK 0x0000ffff      /* Current filter cutoff frequency of specified channel */
     476#define CVCF_CURRENTFILTER      0x10000002
     477#endif
    438478
    439479#define VTFT                    0x03            /* Volume target and filter cutoff target register      */
     480#ifndef TARGET_OS2
    440481SUB_REG(VTFT, VOLUMETARGET,     0xffff0000)     /* Volume target of specified channel                   */
    441482SUB_REG(VTFT, FILTERTARGET,     0x0000ffff)     /* Filter cutoff target of specified channel            */
     483#else
     484#define VTFT_VOLUMETARGET_MASK  0xffff0000      /* Volume target of specified channel                   */
     485#define VTFT_VOLUMETARGET       0x10100003
     486#define VTFT_FILTERTARGET_MASK  0x0000ffff      /* Filter cutoff target of specified channel            */
     487#define VTFT_FILTERTARGET       0x10000003
     488#endif
    442489
    443490#define Z1                      0x05            /* Filter delay memory 1 register                       */
     
    446493
    447494#define PSST                    0x06            /* Send C amount and loop start address register        */
     495#ifndef TARGET_OS2
    448496SUB_REG(PSST, FXSENDAMOUNT_C,   0xff000000)     /* Linear level of channel output sent to FX send bus C */
    449497SUB_REG(PSST, LOOPSTARTADDR,    0x00ffffff)     /* Loop start address of the specified channel          */
     498#else
     499#define PSST_FXSENDAMOUNT_C_MASK 0xff000000     /* Linear level of channel output sent to FX send bus C */
     500
     501#define PSST_FXSENDAMOUNT_C     0x08180006
     502
     503#define PSST_LOOPSTARTADDR_MASK 0x00ffffff      /* Loop start address of the specified channel          */
     504#define PSST_LOOPSTARTADDR      0x18000006
     505#endif
    450506
    451507#define DSL                     0x07            /* Send D amount and loop end address register  */
     508#ifndef TARGET_OS2
    452509SUB_REG(DSL, FXSENDAMOUNT_D,    0xff000000)     /* Linear level of channel output sent to FX send bus D */
    453510SUB_REG(DSL, LOOPENDADDR,       0x00ffffff)     /* Loop end address of the specified channel            */
     511#else
     512#define DSL_FXSENDAMOUNT_D_MASK 0xff000000      /* Linear level of channel output sent to FX send bus D */
     513
     514#define DSL_FXSENDAMOUNT_D      0x08180007
     515
     516#define DSL_LOOPENDADDR_MASK    0x00ffffff      /* Loop end address of the specified channel            */
     517#define DSL_LOOPENDADDR         0x18000007
     518#endif
    454519
    455520#define CCCA                    0x08            /* Filter Q, interp. ROM, byte size, cur. addr register */
     521#ifndef TARGET_OS2
    456522SUB_REG(CCCA, RESONANCE,        0xf0000000)     /* Lowpass filter resonance (Q) height                  */
     523#else
     524#define CCCA_RESONANCE          0xf0000000      /* Lowpass filter resonance (Q) height                  */
     525#endif
    457526#define CCCA_INTERPROM_MASK     0x0e000000      /* Selects passband of interpolation ROM                */
    458527                                                /* 1 == full band, 7 == lowpass                         */
     
    471540#define CCCA_8BITSELECT         0x01000000      /* 1 = Sound memory for this channel uses 8-bit samples */
    472541                                                /* 8-bit samples are unsigned, 16-bit ones signed       */
     542#ifndef TARGET_OS2
    473543SUB_REG(CCCA, CURRADDR,         0x00ffffff)     /* Current address of the selected channel              */
     544#else
     545#define CCCA_CURRADDR_MASK      0x00ffffff      /* Current address of the selected channel              */
     546#define CCCA_CURRADDR           0x18000008
     547#endif
    474548
    475549#define CCR                     0x09            /* Cache control register                               */
     550#ifndef TARGET_OS2
    476551SUB_REG(CCR, CACHEINVALIDSIZE,  0xfe000000)     /* Number of invalid samples before the read address    */
     552#else
     553#define CCR_CACHEINVALIDSIZE    0x07190009
     554#define CCR_CACHEINVALIDSIZE_MASK       0xfe000000      /* Number of invalid samples cache for this channel     */
     555#endif
    477556#define CCR_CACHELOOPFLAG       0x01000000      /* 1 = Cache has a loop service pending                 */
    478557#define CCR_INTERLEAVEDSAMPLES  0x00800000      /* 1 = A cache service will fetch interleaved samples   */
     
    480559#define CCR_WORDSIZEDSAMPLES    0x00400000      /* 1 = A cache service will fetch word sized samples    */
    481560                                                /* Auto-set from CCCA_8BITSELECT                        */
     561#ifndef TARGET_OS2
    482562SUB_REG(CCR, READADDRESS,       0x003f0000)     /* Next cached sample to play                           */
    483563SUB_REG(CCR, LOOPINVALSIZE,     0x0000fe00)     /* Number of invalid samples in cache prior to loop     */
     564#else
     565#define CCR_READADDRESS         0x06100009
     566#define CCR_READADDRESS_MASK    0x003f0000      /* Location of cache just beyond current cache service  */
     567#define CCR_LOOPINVALSIZE       0x0000fe00      /* Number of invalid samples in cache prior to loop     */
     568                                                /* NOTE: This is valid only if CACHELOOPFLAG is set     */
     569#endif
    484570                                                /* NOTE: This is valid only if CACHELOOPFLAG is set     */
    485571#define CCR_LOOPFLAG            0x00000100      /* Set for a single sample period when a loop occurs    */
     572#ifndef TARGET_OS2
    486573SUB_REG(CCR, CACHELOOPADDRHI,   0x000000ff)     /* CLP_LOOPSTARTADDR's hi byte if CACHELOOPFLAG is set  */
     574#else
     575#define CCR_CACHELOOPADDRHI     0x000000ff      /* DSL_LOOPSTARTADDR's hi byte if CACHELOOPFLAG is set  */
     576#endif
    487577
    488578#define CLP                     0x0a            /* Cache loop register (valid if CCR_CACHELOOPFLAG = 1) */
    489579                                                /* NOTE: This register is normally not used             */
     580#ifndef TARGET_OS2
    490581SUB_REG(CLP, CACHELOOPADDR,     0x0000ffff)     /* Cache loop address low word                          */
     582#else
     583#define CLP_CACHELOOPADDR       0x0000ffff      /* Cache loop address (DSL_LOOPSTARTADDR [0..15])       */
     584#endif
    491585
    492586#define FXRT                    0x0b            /* Effects send routing register                        */
     
    558652
    559653#define IFATN                   0x19            /* Initial filter cutoff and attenuation register       */
     654#ifndef TARGET_OS2
    560655SUB_REG(IFATN, FILTERCUTOFF,    0x0000ff00)     /* Initial filter cutoff frequency in exponential units */
    561656                                                /* 6 most significant bits are semitones                */
     
    563658SUB_REG(IFATN, ATTENUATION,     0x000000ff)     /* Initial attenuation in 0.375dB steps                 */
    564659
     660#else
     661#define IFATN_FILTERCUTOFF_MASK 0x0000ff00      /* Initial filter cutoff frequency in exponential units */
     662                                                /* 6 most significant bits are semitones                */
     663                                                /* 2 least significant bits are fractions               */
     664#define IFATN_FILTERCUTOFF      0x08080019
     665#define IFATN_ATTENUATION_MASK  0x000000ff      /* Initial attenuation in 0.375dB steps                 */
     666#define IFATN_ATTENUATION       0x08000019
     667#endif
    565668#define PEFE                    0x1a            /* Pitch envelope and filter envelope amount register   */
     669#ifndef TARGET_OS2
    566670SUB_REG(PEFE, PITCHAMOUNT,      0x0000ff00)     /* Pitch envlope amount                                 */
    567671                                                /* Signed 2's complement, +/- one octave peak extremes  */
    568672SUB_REG(PEFE, FILTERAMOUNT,     0x000000ff)     /* Filter envlope amount                                */
    569673                                                /* Signed 2's complement, +/- six octaves peak extremes */
     674#else
     675#define PEFE_PITCHAMOUNT_MASK   0x0000ff00      /* Pitch envlope amount                                 */
     676                                                /* Signed 2's complement, +/- one octave peak extremes  */
     677#define PEFE_PITCHAMOUNT        0x0808001a
     678#define PEFE_FILTERAMOUNT_MASK  0x000000ff      /* Filter envlope amount                                */
     679                                                /* Signed 2's complement, +/- six octaves peak extremes */
     680#define PEFE_FILTERAMOUNT       0x0800001a
     681#endif
    570682
    571683
     
    814926
    815927#define MICIDX                  0x63            /* Microphone recording buffer index register   */
     928#ifndef TARGET_OS2
    816929SUB_REG(MICIDX, IDX,            0x0000ffff)
     930#else
     931#define MICIDX_MASK             0x0000ffff      /* 16-bit value                                 */
     932#define MICIDX_IDX              0x10000063
     933#endif
    817934
    818935#define ADCIDX                  0x64            /* ADC recording buffer index register          */
     936#ifndef TARGET_OS2
    819937SUB_REG(ADCIDX, IDX,            0x0000ffff)
     938#else
     939#define ADCIDX_MASK             0x0000ffff      /* 16 bit index field                           */
     940#define ADCIDX_IDX              0x10000064
     941#endif
    820942
    821943#define A_ADCIDX                0x63
     944#ifndef TARGET_OS2
    822945SUB_REG(A_ADCIDX, IDX,          0x0000ffff)
     946#else
     947#define A_ADCIDX_IDX            0x10000063
     948#endif
    823949
    824950#define A_MICIDX                0x64
     951#ifndef TARGET_OS2
    825952SUB_REG(A_MICIDX, IDX,          0x0000ffff)
     953#else
     954#define A_MICIDX_IDX            0x10000064
     955#endif
    826956
    827957#define FXIDX                   0x65            /* FX recording buffer index register           */
     958#ifndef TARGET_OS2
    828959SUB_REG(FXIDX, IDX,             0x0000ffff)
     960#else
     961#define FXIDX_MASK              0x0000ffff      /* 16-bit value                                 */
     962#define FXIDX_IDX               0x10000065
     963#endif
    829964
    830965/* The 32-bit HLIEx and HLIPx registers all have one bit per channel control/status                     */
     
    8701005#define A_SPDIF_MUTED           0x000000c0
    8711006
     1007#ifndef TARGET_OS2
    8721008SUB_REG_NC(A_EHC, A_I2S_CAPTURE_RATE, 0x00000e00)  /* This sets the capture PCM rate, but it is  */
    8731009                                                   /* unclear if this sets the ADC rate as well. */
     1010#else
     1011#define A_I2S_CAPTURE_RATE      0x00000e00
     1012#define A_I2S_CAPTURE_RATE_MASK 0x00000e00      /* This sets the capture PCM rate, but it is    */
     1013                                                   /* unclear if this sets the ADC rate as well. */
     1014#endif
    8741015#define A_I2S_CAPTURE_48000     0x0
    8751016#define A_I2S_CAPTURE_192000    0x1
     
    16471788        unsigned char revision;
    16481789        unsigned char emu_model;        /* EMU model type */
     1790#ifndef TARGET_OS2
    16491791        unsigned int emu10k1_chip:1;    /* Original SB Live. Not SB Live 24bit. */
    16501792                                        /* Redundant with emu10k2_chip being unset. */
     
    16661808        unsigned int adc_1361t:1;       /* Use Philips 1361T ADC */
    16671809        unsigned int invert_shared_spdif:1;  /* analog/digital switch inverted */
     1810#else
     1811        unsigned int emu10k1_chip;      /* Original SB Live. Not SB Live 24bit. */
     1812                                        /* Redundant with emu10k2_chip being unset. */
     1813        unsigned int emu10k2_chip;      /* Audigy 1 or Audigy 2. */
     1814        unsigned int ca0102_chip;       /* Audigy 1 or Audigy 2. Not SB Audigy 2 Value. */
     1815                                        /* Redundant with ca0108_chip being unset. */
     1816        unsigned int ca0108_chip;       /* Audigy 2 Value */
     1817        unsigned int ca_cardbus_chip;   /* Audigy 2 ZS Notebook */
     1818        unsigned int ca0151_chip;       /* P16V */
     1819        unsigned int spk20;             /* Stereo only */
     1820        unsigned int spk71;             /* Has 7.1 speakers */
     1821        unsigned int no_adat;           /* Has no ADAT, only SPDIF */
     1822        unsigned int sblive51;          /* SBLive! 5.1 - extout 0x11 -> center, 0x12 -> lfe */
     1823        unsigned int spdif_bug;         /* Has Spdif phasing bug */
     1824        unsigned int ac97_chip;         /* Has an AC97 chip: 1 = mandatory, 2 = optional */
     1825        unsigned int ecard;             /* APS EEPROM */
     1826        unsigned int spi_dac;           /* SPI interface for DAC; requires ca0108_chip */
     1827        unsigned int i2c_adc;           /* I2C interface for ADC; requires ca0108_chip */
     1828        unsigned int adc_1361t;         /* Use Philips 1361T ADC */
     1829        unsigned int invert_shared_spdif;  /* analog/digital switch inverted */
     1830#endif
    16681831        const char *driver;
    16691832        const char *name;
  • GPL/branches/uniaud32-exp/alsa-kernel/include/sound/hdaudio.h

    r762 r763  
    724724 */
    725725
     726#ifndef TARGET_OS2
    726727#define HDA_CONTROLLER_IS_HSW(pci) (pci_match_id((struct pci_device_id []){ \
    727728                        { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HDA_HSW_0) }, \
     
    744745                        { } \
    745746                }, pci) || HDA_CONTROLLER_IS_HSW(pci))
    746 
     747#else
     748#define HDA_CONTROLLER_IS_HSW(pci) 0
     749#define HDA_CONTROLLER_IS_APL(pci) 0
     750#define HDA_CONTROLLER_IN_GPU(pci) 0
     751#endif
    747752#endif /* __SOUND_HDAUDIO_H */
  • GPL/branches/uniaud32-exp/alsa-kernel/include/uapi/sound/asound.h

    r762 r763  
    2828#ifndef __bitwise
    2929#define __bitwise
     30#endif
     31
     32#ifndef __packed
     33#define __packed
    3034#endif
    3135
  • GPL/branches/uniaud32-exp/alsa-kernel/pci/emu10k1/emu10k1_main.c

    r762 r763  
    197197                /* Hacks for Alice3 to work independent of haP16V driver */
    198198                /* Setup SRCMulti_I2S SamplingRate */
     199#ifndef TARGET_OS2
    199200                snd_emu10k1_ptr_write(emu, A_I2S_CAPTURE_RATE, 0, A_I2S_CAPTURE_96000);
    200 
     201#else
     202                tmp = snd_emu10k1_ptr_read(emu, A_SPDIF_SAMPLERATE, 0);
     203                tmp &= 0xfffff1ff;
     204                tmp |= (0x2<<9);
     205                snd_emu10k1_ptr_write(emu, A_SPDIF_SAMPLERATE, 0, tmp);
     206#endif
    201207                /* Setup SRCSel (Enable Spdif,I2S SRCMulti) */
    202208                snd_emu10k1_ptr20_write(emu, SRCSel, 0, 0x14);
     
    213219                dev_info(emu->card->dev, "Audigy2 value: Special config.\n");
    214220                /* Setup SRCMulti_I2S SamplingRate */
     221#ifndef TARGET_OS2
    215222                snd_emu10k1_ptr_write(emu, A_I2S_CAPTURE_RATE, 0, A_I2S_CAPTURE_96000);
    216 
     223#else
     224                tmp = snd_emu10k1_ptr_read(emu, A_SPDIF_SAMPLERATE, 0);
     225                tmp &= 0xfffff1ff;
     226                tmp |= (0x2<<9);
     227                snd_emu10k1_ptr_write(emu, A_SPDIF_SAMPLERATE, 0, tmp);
     228#endif
    217229                /* Setup SRCSel (Enable Spdif,I2S SRCMulti) */
    218230                snd_emu10k1_ptr20_write(emu, P17V_SRCSel, 0, 0x14);
     
    780792}
    781793
    782 +static void emu1010_dock_event(struct snd_emu10k1 *emu)
    783 +{
    784 +       u32 reg;
    785 +
     794static void emu1010_dock_event(struct snd_emu10k1 *emu)
     795{
     796        u32 reg;
     797
    786798        snd_emu1010_fpga_read(emu, EMU_HANA_OPTION_CARDS, &reg); /* OPTIONS: Which cards are attached to the EMU */
    787799        if (reg & EMU_HANA_OPTION_DOCK_OFFLINE) {
  • GPL/branches/uniaud32-exp/alsa-kernel/pci/emu10k1/emufx.c

    r762 r763  
    13961396        // We need to double the volume, as we configure the voices for half volume,
    13971397        // which is necessary for bit-identical reproduction.
    1398         { static_assert(stereo_mix == playback + SND_EMU10K1_PLAYBACK_CHANNELS); }
     1398        //{ static_assert(stereo_mix == playback + SND_EMU10K1_PLAYBACK_CHANNELS); }
    13991399        for (z = 0; z < SND_EMU10K1_PLAYBACK_CHANNELS + 2; z++)
    14001400                A_OP(icode, &ptr, iACC3, A_GPR(playback + z), A_GPR(playback + z), A_GPR(playback + z), A_C_00000000);
  • GPL/branches/uniaud32-exp/alsa-kernel/pci/emu10k1/emumixer.c

    r762 r763  
    167167        EMU32_SRC_REGS,
    168168};
    169 static_assert(ARRAY_SIZE(emu1010_src_regs) == ARRAY_SIZE(emu1010_src_texts));
     169//static_assert(ARRAY_SIZE(emu1010_src_regs) == ARRAY_SIZE(emu1010_src_texts));
    170170
    171171/* 1010 rev2 */
     
    199199        EMU32_SRC_REGS,
    200200};
    201 static_assert(ARRAY_SIZE(emu1010b_src_regs) == ARRAY_SIZE(emu1010b_src_texts));
     201//static_assert(ARRAY_SIZE(emu1010b_src_regs) == ARRAY_SIZE(emu1010b_src_texts));
    202202
    203203/* 1616(m) cardbus */
     
    225225        EMU32_SRC_REGS,
    226226};
    227 static_assert(ARRAY_SIZE(emu1616_src_regs) == ARRAY_SIZE(emu1616_src_texts));
     227//static_assert(ARRAY_SIZE(emu1616_src_regs) == ARRAY_SIZE(emu1616_src_texts));
    228228
    229229/* 0404 rev1 & rev2 */
     
    245245        EMU32_SRC_REGS,
    246246};
    247 static_assert(ARRAY_SIZE(emu0404_src_regs) == ARRAY_SIZE(emu0404_src_texts));
     247//static_assert(ARRAY_SIZE(emu0404_src_regs) == ARRAY_SIZE(emu0404_src_texts));
    248248
    249249/*
     
    268268        ADAT_CTLS("1010 "),
    269269};
    270 static_assert(ARRAY_SIZE(emu1010_output_texts) <= NUM_OUTPUT_DESTS);
     270//static_assert(ARRAY_SIZE(emu1010_output_texts) <= NUM_OUTPUT_DESTS);
    271271
    272272static const unsigned short emu1010_output_dst[] = {
     
    281281        ADAT_REGS(EMU_DST_HANA_ADAT),
    282282};
    283 static_assert(ARRAY_SIZE(emu1010_output_dst) == ARRAY_SIZE(emu1010_output_texts));
     283//static_assert(ARRAY_SIZE(emu1010_output_dst) == ARRAY_SIZE(emu1010_output_texts));
    284284
    285285static const unsigned short emu1010_output_dflt[] = {
     
    295295        EMU_SRC_ALICE_EMU32A+4, EMU_SRC_ALICE_EMU32A+5, EMU_SRC_ALICE_EMU32A+6, EMU_SRC_ALICE_EMU32A+7,
    296296};
    297 static_assert(ARRAY_SIZE(emu1010_output_dflt) == ARRAY_SIZE(emu1010_output_dst));
     297//static_assert(ARRAY_SIZE(emu1010_output_dflt) == ARRAY_SIZE(emu1010_output_dst));
    298298
    299299/* 1010 rev2 */
     
    309309        ADAT_CTLS("1010 "),
    310310};
    311 static_assert(ARRAY_SIZE(snd_emu1010b_output_texts) <= NUM_OUTPUT_DESTS);
     311//static_assert(ARRAY_SIZE(snd_emu1010b_output_texts) <= NUM_OUTPUT_DESTS);
    312312
    313313static const unsigned short emu1010b_output_dst[] = {
     
    321321        ADAT_REGS(EMU_DST_HANA_ADAT),
    322322};
    323 static_assert(ARRAY_SIZE(emu1010b_output_dst) == ARRAY_SIZE(snd_emu1010b_output_texts));
     323//static_assert(ARRAY_SIZE(emu1010b_output_dst) == ARRAY_SIZE(snd_emu1010b_output_texts));
    324324
    325325static const unsigned short emu1010b_output_dflt[] = {
     
    346346        LR_CTLS("Mana DAC"),
    347347};
    348 static_assert(ARRAY_SIZE(snd_emu1616_output_texts) <= NUM_OUTPUT_DESTS);
     348//static_assert(ARRAY_SIZE(snd_emu1616_output_texts) <= NUM_OUTPUT_DESTS);
    349349
    350350static const unsigned short emu1616_output_dst[] = {
     
    356356        EMU_DST_MANA_DAC_LEFT, EMU_DST_MANA_DAC_RIGHT,
    357357};
    358 static_assert(ARRAY_SIZE(emu1616_output_dst) == ARRAY_SIZE(snd_emu1616_output_texts));
     358//static_assert(ARRAY_SIZE(emu1616_output_dst) == ARRAY_SIZE(snd_emu1616_output_texts));
    359359
    360360static const unsigned short emu1616_output_dflt[] = {
     
    367367        EMU_SRC_ALICE_EMU32A+0, EMU_SRC_ALICE_EMU32A+1,
    368368};
    369 static_assert(ARRAY_SIZE(emu1616_output_dflt) == ARRAY_SIZE(emu1616_output_dst));
     369//static_assert(ARRAY_SIZE(emu1616_output_dflt) == ARRAY_SIZE(emu1616_output_dst));
    370370
    371371/* 0404 rev1 & rev2 */
     
    375375        LR_CTLS("SPDIF"),
    376376};
    377 static_assert(ARRAY_SIZE(snd_emu0404_output_texts) <= NUM_OUTPUT_DESTS);
     377//static_assert(ARRAY_SIZE(snd_emu0404_output_texts) <= NUM_OUTPUT_DESTS);
    378378
    379379static const unsigned short emu0404_output_dst[] = {
     
    381381        LR_REGS(EMU_DST_HANA_SPDIF),
    382382};
    383 static_assert(ARRAY_SIZE(emu0404_output_dst) == ARRAY_SIZE(snd_emu0404_output_texts));
     383//static_assert(ARRAY_SIZE(emu0404_output_dst) == ARRAY_SIZE(snd_emu0404_output_texts));
    384384
    385385static const unsigned short emu0404_output_dflt[] = {
     
    387387        EMU_SRC_ALICE_EMU32A+0, EMU_SRC_ALICE_EMU32A+1,
    388388};
    389 static_assert(ARRAY_SIZE(emu0404_output_dflt) == ARRAY_SIZE(emu0404_output_dst));
     389//static_assert(ARRAY_SIZE(emu0404_output_dflt) == ARRAY_SIZE(emu0404_output_dst));
    390390
    391391/*
     
    420420        "DSP 15 Capture Enum",
    421421};
    422 static_assert(ARRAY_SIZE(emu1010_input_texts) <= NUM_INPUT_DESTS);
     422//static_assert(ARRAY_SIZE(emu1010_input_texts) <= NUM_INPUT_DESTS);
    423423
    424424static const unsigned short emu1010_input_dst[] = {
     
    447447        EMU_DST_ALICE_I2S2_RIGHT,
    448448};
    449 static_assert(ARRAY_SIZE(emu1010_input_dst) == ARRAY_SIZE(emu1010_input_texts));
     449//static_assert(ARRAY_SIZE(emu1010_input_dst) == ARRAY_SIZE(emu1010_input_texts));
    450450
    451451static const unsigned short emu1010_input_dflt[] = {
     
    477477        EMU_SRC_DOCK_ADC3_RIGHT1,
    478478};
    479 static_assert(ARRAY_SIZE(emu1010_input_dflt) == ARRAY_SIZE(emu1010_input_dst));
     479//static_assert(ARRAY_SIZE(emu1010_input_dflt) == ARRAY_SIZE(emu1010_input_dst));
    480480
    481481static const unsigned short emu0404_input_dflt[] = {
  • GPL/branches/uniaud32-exp/alsa-kernel/pci/emu10k1/emuproc.c

    r762 r763  
    430430                "Unused", "EFX", "EFX IRQ", "PCM", "PCM IRQ", "Synth"
    431431        };
    432         static_assert(ARRAY_SIZE(types) == EMU10K1_NUM_TYPES);
     432        //static_assert(ARRAY_SIZE(types) == EMU10K1_NUM_TYPES);
    433433
    434434        snd_iprintf(buffer, "ch\tdirty\tlast\tuse\n");
  • GPL/branches/uniaud32-exp/alsa-kernel/pci/es1938.c

    r762 r763  
    835835        if (snd_BUG_ON(pos + count > chip->dma1_size))
    836836                return -EINVAL;
     837#ifndef TARGET_OS2
    837838        if (pos + count < chip->dma1_size) {
    838839                if (copy_to_iter(runtime->dma_area + pos + 1, count, dst) != count)
     
    844845                        return -EFAULT;
    845846        }
     847#else
     848        if (pos + count < chip->dma1_size) {
     849                if (copy_to_user(dst, runtime->dma_area + pos + 1, count))
     850                        return -EFAULT;
     851        } else {
     852                if (copy_to_user(dst, runtime->dma_area + pos + 1, count - 1))
     853                        return -EFAULT;
     854                if (put_user(runtime->dma_area[0],
     855                             ((unsigned char __user *)dst) + count - 1))
     856                        return -EFAULT;
     857        }
     858#endif
    846859        return 0;
    847860}
  • GPL/branches/uniaud32-exp/alsa-kernel/pci/hda/hda_component2.h

    r762 r763  
    1616        char name[HDA_MAX_NAME_SIZE];
    1717        struct hda_codec *codec;
     18        void (*pre_playback_hook)(struct device *dev, int action);
    1819        void (*playback_hook)(struct device *dev, int action);
    19         int (*suspend_hook)(struct device *dev);
    20         int (*resume_hook)(struct device *dev);
     20        void (*post_playback_hook)(struct device *dev, int action);
    2121};
  • GPL/branches/uniaud32-exp/alsa-kernel/pci/hda/hda_intel.c

    r762 r763  
    583583        snd_hdac_set_codec_wakeup(bus, false);
    584584
     585#ifndef TARGET_OS2
    585586        /* reduce dma latency to avoid noise */
    586587        if (HDA_CONTROLLER_IS_APL(pci))
    587588                bxt_reduce_dma_latency(chip);
    588 
     589#endif
    589590        if (bus->mlcap != NULL)
    590591                intel_init_lctl(chip);
     
    22122213#endif /* CONFIG_SND_HDA_PATCH_LOADER */
    22132214
    2214 #ifndef CONFIG_SND_HDA_I915
     2215#if !defined(CONFIG_SND_HDA_I915) && !defined(TARGET_OS2)
    22152216        if (HDA_CONTROLLER_IN_GPU(pci))
    22162217                dev_err(card->dev, "Haswell/Broadwell HDMI/DP must build in CONFIG_SND_HDA_I915\n");
  • GPL/branches/uniaud32-exp/alsa-kernel/pci/hda/patch_ca0132.c

    r762 r763  
    13311331        { .id = QUIRK_AE5, .name = "ae5" },
    13321332        { .id = QUIRK_AE7, .name = "ae7" },
    1333         {}
     1333        {0}
    13341334};
    13351335
  • GPL/branches/uniaud32-exp/alsa-kernel/pci/hda/patch_realtek.c

    r762 r763  
    56165616                                             const struct hda_fixup *fix, int action)
    56175617{
    5618 #if IS_ENABLED(CONFIG_INPUT)
     5618#if IS_ENABLED(CONFIG_INPUT) && !defined(TARGET_OS2)
    56195619        struct alc_spec *spec = codec->spec;
    56205620
     
    56525652                                             const struct hda_fixup *fix, int action)
    56535653{
     5654#if IS_ENABLED(CONFIG_INPUT)
    56545655        struct alc_spec *spec = codec->spec;
    56555656
     
    56735674                spec->kb_dev = NULL;
    56745675        }
     5676#endif
    56755677}
    56765678
  • GPL/branches/uniaud32-exp/alsa-kernel/pci/nm256/nm256.c

    r762 r763  
    701701        struct nm256_stream *s = runtime->private_data;
    702702
     703#ifndef TARGET_OS2
    703704        return copy_from_iter_toio(s->bufptr + pos, src, count);
     705#else
     706        if (copy_from_user_toio(s->bufptr + pos, src, count))
     707                return -EFAULT;
     708        return 0;
     709#endif
    704710}
    705711
     
    715721        struct nm256_stream *s = runtime->private_data;
    716722
     723#ifndef TARGET_OS2
    717724        return copy_to_iter_fromio(dst, s->bufptr + pos, count);
     725#else
     726        if (copy_to_user_fromio(dst, s->bufptr + pos, count))
     727                return -EFAULT;
     728        return 0;
     729#endif
    718730}
    719731
  • GPL/branches/uniaud32-exp/alsa-kernel/pci/ymfpci/ymfpci.h

    r762 r763  
    310310#define DSXG_PCI_NUM_SAVED_REGS ARRAY_SIZE(pci_saved_regs_index)
    311311#define DSXG_PCI_NUM_SAVED_LEGACY_REGS  2
     312#ifndef TARGET_OS2
    312313static_assert(DSXG_PCI_NUM_SAVED_LEGACY_REGS <= DSXG_PCI_NUM_SAVED_REGS);
     314#endif
    313315
    314316struct snd_ymfpci {
  • GPL/branches/uniaud32-exp/include/asm/uaccess.h

    r639 r763  
    4444int is_access_ok(int type, void *addr, unsigned long size);
    4545
    46 #define access_ok(type, addr, size) __access_ok((unsigned long)(addr),(size))
    47 
    4846/*
    4947 * The architecture should really override this if possible, at least
     
    5452        return 1;
    5553}
     54
     55#define access_ok(addr, size) __access_ok(addr, size)
    5656
    5757#define verify_area(type, addr, size) (access_ok(type, (void *)addr,size) ? 0 : -EFAULT)
     
    235235#define strlen_user(str) strnlen_user(str, ~0UL >> 1)
    236236long strnlen_user(const char *str, long n);
    237 unsigned long clear_user(void *mem, unsigned long len);
    238 unsigned long __clear_user(void *mem, unsigned long len);
     237/*
     238 * Zero Userspace
     239 */
     240#ifndef __clear_user
     241static inline __must_check unsigned long
     242__clear_user(void __user *to, unsigned long n)
     243{
     244        memset((void __force *)to, 0, n);
     245        return 0;
     246}
     247#endif
     248
     249static inline __must_check unsigned long
     250clear_user(void __user *to, unsigned long n)
     251{
     252        if (!access_ok(to, n))
     253                return n;
     254
     255        return __clear_user(to, n);
     256}
    239257
    240258#endif /* __i386_UACCESS_H */
  • GPL/branches/uniaud32-exp/include/linux/fs.h

    r647 r763  
    336336}
    337337
     338#define MAX_RW_COUNT (INT_MAX & PAGE_MASK)
     339
    338340#endif /* _LINUX_FS_H */
  • GPL/branches/uniaud32-exp/include/linux/ioport.h

    r718 r763  
    1212
    1313#include <linux/types.h>
     14#include <linux/minmax.h>
     15
    1416/*
    1517 * Resources are tree-like, allowing
  • GPL/branches/uniaud32-exp/include/linux/kernel.h

    r728 r763  
    1717#include <linux/string.h>
    1818#include <linux/math.h>
     19#include <linux/minmax.h>
    1920#include <linux/export.h>
    2021
  • GPL/branches/uniaud32-exp/include/linux/lockdep.h

    r647 r763  
    1919                do { (void)(key); (void)(name); } while (0)
    2020struct lock_class_key {int not_used; };
     21
     22#define lockdep_assert_held(l)
     23#define lockdep_assert_not_held(l)
     24#define lockdep_assert_held_write(l)
     25#define lockdep_assert_held_read(l)
     26#define lockdep_assert_held_once(l)
     27#define lockdep_assert_none_held_once()
     28
    2129#endif /* __LINUX_LOCKDEP_H */
  • GPL/branches/uniaud32-exp/include/linux/pci_ids.h

    r760 r763  
    33 *      PCI Class, Vendor and Device IDs
    44 *
    5  *      Please keep sorted.
     5 *      Please keep sorted by numeric Vendor ID and Device ID.
    66 *
    77 *      Do not add new entries to this file unless the definitions
     
    5252#define PCI_CLASS_MEMORY_RAM            0x0500
    5353#define PCI_CLASS_MEMORY_FLASH          0x0501
     54#define PCI_CLASS_MEMORY_CXL            0x0502
    5455#define PCI_CLASS_MEMORY_OTHER          0x0580
    5556
     
    6061#define PCI_CLASS_BRIDGE_MC             0x0603
    6162#define PCI_CLASS_BRIDGE_PCI            0x0604
     63#define PCI_CLASS_BRIDGE_PCI_NORMAL             0x060400
     64#define PCI_CLASS_BRIDGE_PCI_SUBTRACTIVE        0x060401
    6265#define PCI_CLASS_BRIDGE_PCMCIA         0x0605
    6366#define PCI_CLASS_BRIDGE_NUBUS          0x0606
     
    7275#define PCI_CLASS_COMMUNICATION_MODEM   0x0703
    7376#define PCI_CLASS_COMMUNICATION_OTHER   0x0780
     77
     78/* Interface for SERIAL/MODEM */
     79#define PCI_SERIAL_16550_COMPATIBLE     0x02
    7480
    7581#define PCI_BASE_CLASS_SYSTEM           0x08
     
    8288#define PCI_CLASS_SYSTEM_PCI_HOTPLUG    0x0804
    8389#define PCI_CLASS_SYSTEM_SDHCI          0x0805
     90#define PCI_CLASS_SYSTEM_RCEC           0x0807
    8491#define PCI_CLASS_SYSTEM_OTHER          0x0880
    8592
     
    118125#define PCI_CLASS_SERIAL_FIBER          0x0c04
    119126#define PCI_CLASS_SERIAL_SMBUS          0x0c05
     127#define PCI_CLASS_SERIAL_IPMI           0x0c07
     128#define PCI_CLASS_SERIAL_IPMI_SMIC      0x0c0700
     129#define PCI_CLASS_SERIAL_IPMI_KCS       0x0c0701
     130#define PCI_CLASS_SERIAL_IPMI_BT        0x0c0702
    120131
    121132#define PCI_BASE_CLASS_WIRELESS                 0x0d
     
    141152#define PCI_CLASS_SP_OTHER              0x1180
    142153
     154#define PCI_BASE_CLASS_ACCELERATOR      0x12
     155#define PCI_CLASS_ACCELERATOR_PROCESSING        0x1200
     156
    143157#define PCI_CLASS_OTHERS                0xff
    144158
    145159/* Vendors and devices.  Sort key: vendor first, device next. */
     160#define PCI_VENDOR_ID_PCI_SIG           0x0001
     161
     162#define PCI_VENDOR_ID_LOONGSON          0x0014
     163
     164#define PCI_DEVICE_ID_LOONGSON_HDA      0x7a07
     165#define PCI_DEVICE_ID_LOONGSON_HDMI     0x7a37
     166
     167#define PCI_VENDOR_ID_SOLIDIGM          0x025e
    146168
    147169#define PCI_VENDOR_ID_TTTECH            0x0357
     
    150172#define PCI_VENDOR_ID_DYNALINK          0x0675
    151173#define PCI_DEVICE_ID_DYNALINK_IS64PH   0x1702
     174
     175#define PCI_VENDOR_ID_UBIQUITI          0x0777
    152176
    153177#define PCI_VENDOR_ID_BERKOM                    0x0871
     
    156180#define PCI_DEVICE_ID_BERKOM_A4T                0xffa4
    157181#define PCI_DEVICE_ID_BERKOM_SCITEL_QUADRO      0xffa8
     182
     183#define PCI_VENDOR_ID_ITTIM             0x0b48
    158184
    159185#define PCI_VENDOR_ID_COMPAQ            0x0e11
     
    540566#define PCI_DEVICE_ID_AMD_16H_M30H_NB_F3 0x1583
    541567#define PCI_DEVICE_ID_AMD_16H_M30H_NB_F4 0x1584
     568#define PCI_DEVICE_ID_AMD_17H_DF_F3     0x1463
     569#define PCI_DEVICE_ID_AMD_17H_M10H_DF_F3 0x15eb
     570#define PCI_DEVICE_ID_AMD_17H_M30H_DF_F3 0x1493
     571#define PCI_DEVICE_ID_AMD_17H_M60H_DF_F3 0x144b
     572#define PCI_DEVICE_ID_AMD_17H_M70H_DF_F3 0x1443
     573#define PCI_DEVICE_ID_AMD_17H_MA0H_DF_F3 0x1727
     574#define PCI_DEVICE_ID_AMD_19H_DF_F3     0x1653
     575#define PCI_DEVICE_ID_AMD_19H_M10H_DF_F3 0x14b0
     576#define PCI_DEVICE_ID_AMD_19H_M40H_DF_F3 0x167c
     577#define PCI_DEVICE_ID_AMD_19H_M50H_DF_F3 0x166d
     578#define PCI_DEVICE_ID_AMD_19H_M60H_DF_F3 0x14e3
     579#define PCI_DEVICE_ID_AMD_19H_M70H_DF_F3 0x14f3
     580#define PCI_DEVICE_ID_AMD_19H_M78H_DF_F3 0x12fb
     581#define PCI_DEVICE_ID_AMD_1AH_M00H_DF_F3 0x12c3
     582#define PCI_DEVICE_ID_AMD_1AH_M20H_DF_F3 0x16fb
     583#define PCI_DEVICE_ID_AMD_1AH_M60H_DF_F3 0x124b
     584#define PCI_DEVICE_ID_AMD_1AH_M70H_DF_F3 0x12bb
     585#define PCI_DEVICE_ID_AMD_MI200_DF_F3   0x14d3
     586#define PCI_DEVICE_ID_AMD_VANGOGH_USB   0x163a
    542587#define PCI_DEVICE_ID_AMD_CNB17H_F3     0x1703
    543588#define PCI_DEVICE_ID_AMD_LANCE         0x2000
     
    560605#define PCI_DEVICE_ID_AMD_VIPER_7443    0x7443
    561606#define PCI_DEVICE_ID_AMD_OPUS_7445     0x7445
     607#define PCI_DEVICE_ID_AMD_GOLAM_7450    0x7450
    562608#define PCI_DEVICE_ID_AMD_8111_PCI      0x7460
    563609#define PCI_DEVICE_ID_AMD_8111_LPC      0x7468
     
    614660#define PCI_DEVICE_ID_DELL_RAC4         0x0012
    615661#define PCI_DEVICE_ID_DELL_PERC5        0x0015
     662
     663#define PCI_SUBVENDOR_ID_DELL           0x1028
    616664
    617665#define PCI_VENDOR_ID_MATROX            0x102B
     
    866914#define PCI_DEVICE_ID_TI_X420           0xac8e
    867915#define PCI_DEVICE_ID_TI_XX20_FM        0xac8f
     916#define PCI_DEVICE_ID_TI_J721E          0xb00d
    868917#define PCI_DEVICE_ID_TI_DRA74x         0xb500
    869918#define PCI_DEVICE_ID_TI_DRA72x         0xb501
     
    10611110#define PCI_DEVICE_ID_SGI_IOC3          0x0003
    10621111#define PCI_DEVICE_ID_SGI_LITHIUM       0x1002
    1063 #define PCI_DEVICE_ID_SGI_IOC4          0x100a
    10641112
    10651113#define PCI_VENDOR_ID_WINBOND           0x10ad
     
    11021150
    11031151#define PCI_VENDOR_ID_AL                0x10b9
     1152#define PCI_DEVICE_ID_AL_M1489          0x1489
    11041153#define PCI_DEVICE_ID_AL_M1533          0x1533
    1105 #define PCI_DEVICE_ID_AL_M1535          0x1535
     1154#define PCI_DEVICE_ID_AL_M1535          0x1535
    11061155#define PCI_DEVICE_ID_AL_M1541          0x1541
    11071156#define PCI_DEVICE_ID_AL_M1563          0x1563
     
    11301179#define PCI_VENDOR_ID_TCONRAD           0x10da
    11311180#define PCI_DEVICE_ID_TCONRAD_TOKENRING 0x0508
     1181
     1182#define PCI_VENDOR_ID_ROHM              0x10db
    11321183
    11331184#define PCI_VENDOR_ID_NVIDIA                    0x10de
     
    13251376#define PCI_DEVICE_ID_NVIDIA_NFORCE_MCP77_IDE       0x0759
    13261377#define PCI_DEVICE_ID_NVIDIA_NFORCE_MCP73_SMBUS     0x07D8
     1378#define PCI_DEVICE_ID_NVIDIA_GEFORCE_320M           0x08A0
    13271379#define PCI_DEVICE_ID_NVIDIA_NFORCE_MCP79_SMBUS     0x0AA2
    13281380#define PCI_DEVICE_ID_NVIDIA_NFORCE_MCP89_SATA      0x0D85
     
    15621614#define PCI_DEVICE_ID_SERVERWORKS_HT1100LD 0x0408
    15631615
     1616#define PCI_VENDOR_ID_ALTERA            0x1172
     1617
    15641618#define PCI_VENDOR_ID_SBE               0x1176
    15651619#define PCI_DEVICE_ID_SBE_WANXL100      0x0301
     
    16641718
    16651719#define PCI_VENDOR_ID_PMC_Sierra        0x11f8
     1720#define PCI_VENDOR_ID_MICROSEMI         0x11f8
    16661721
    16671722#define PCI_VENDOR_ID_RP                0x11fe
    1668 #define PCI_DEVICE_ID_RP32INTF          0x0001
    1669 #define PCI_DEVICE_ID_RP8INTF           0x0002
    1670 #define PCI_DEVICE_ID_RP16INTF          0x0003
    1671 #define PCI_DEVICE_ID_RP4QUAD           0x0004
    1672 #define PCI_DEVICE_ID_RP8OCTA           0x0005
    1673 #define PCI_DEVICE_ID_RP8J              0x0006
    1674 #define PCI_DEVICE_ID_RP4J              0x0007
    1675 #define PCI_DEVICE_ID_RP8SNI            0x0008
    1676 #define PCI_DEVICE_ID_RP16SNI           0x0009
    1677 #define PCI_DEVICE_ID_RPP4              0x000A
    1678 #define PCI_DEVICE_ID_RPP8              0x000B
    1679 #define PCI_DEVICE_ID_RP4M              0x000D
    1680 #define PCI_DEVICE_ID_RP2_232           0x000E
    1681 #define PCI_DEVICE_ID_RP2_422           0x000F
    1682 #define PCI_DEVICE_ID_URP32INTF         0x0801
    1683 #define PCI_DEVICE_ID_URP8INTF          0x0802
    1684 #define PCI_DEVICE_ID_URP16INTF         0x0803
    1685 #define PCI_DEVICE_ID_URP8OCTA          0x0805
    1686 #define PCI_DEVICE_ID_UPCI_RM3_8PORT    0x080C
    1687 #define PCI_DEVICE_ID_UPCI_RM3_4PORT    0x080D
    1688 #define PCI_DEVICE_ID_CRP16INTF         0x0903
    16891723
    16901724#define PCI_VENDOR_ID_CYCLADES          0x120e
    1691 #define PCI_DEVICE_ID_CYCLOM_Y_Lo       0x0100
    1692 #define PCI_DEVICE_ID_CYCLOM_Y_Hi       0x0101
    1693 #define PCI_DEVICE_ID_CYCLOM_4Y_Lo      0x0102
    1694 #define PCI_DEVICE_ID_CYCLOM_4Y_Hi      0x0103
    1695 #define PCI_DEVICE_ID_CYCLOM_8Y_Lo      0x0104
    1696 #define PCI_DEVICE_ID_CYCLOM_8Y_Hi      0x0105
    1697 #define PCI_DEVICE_ID_CYCLOM_Z_Lo       0x0200
    1698 #define PCI_DEVICE_ID_CYCLOM_Z_Hi       0x0201
    16991725#define PCI_DEVICE_ID_PC300_RX_2        0x0300
    17001726#define PCI_DEVICE_ID_PC300_RX_1        0x0301
     
    17381764
    17391765/* Allied Telesyn */
    1740 #define PCI_VENDOR_ID_AT                0x1259
     1766#define PCI_VENDOR_ID_AT                0x1259
    17411767#define PCI_SUBDEVICE_ID_AT_2700FX      0x2701
    17421768#define PCI_SUBDEVICE_ID_AT_2701FX      0x2703
     1769
     1770#define PCI_VENDOR_ID_ASIX              0x125b
     1771#define PCI_DEVICE_ID_ASIX_AX99100      0x9100
     1772#define PCI_DEVICE_ID_ASIX_AX99100_LB   0x9110
    17431773
    17441774#define PCI_VENDOR_ID_ESS               0x125d
     
    18131843#define PCI_VENDOR_ID_NVIDIA_SGS        0x12d2
    18141844#define PCI_DEVICE_ID_NVIDIA_SGS_RIVA128 0x0018
     1845
     1846#define PCI_VENDOR_ID_PERICOM                   0x12D8
     1847#define PCI_DEVICE_ID_PERICOM_PI7C9X7951        0x7951
     1848#define PCI_DEVICE_ID_PERICOM_PI7C9X7952        0x7952
     1849#define PCI_DEVICE_ID_PERICOM_PI7C9X7954        0x7954
     1850#define PCI_DEVICE_ID_PERICOM_PI7C9X7958        0x7958
    18151851
    18161852#define PCI_SUBVENDOR_ID_CHASE_PCIFAST          0x12E0
     
    19361972#define PCI_SUBDEVICE_ID_DIGIGRAM_LX6464ES_SERIAL_SUBSYSTEM     0xc001
    19371973#define PCI_SUBDEVICE_ID_DIGIGRAM_LX6464ES_CAE_SERIAL_SUBSYSTEM 0xc002
     1974#define PCI_SUBDEVICE_ID_DIGIGRAM_LX6464ESE_SERIAL_SUBSYSTEM            0xc021
     1975#define PCI_SUBDEVICE_ID_DIGIGRAM_LX6464ESE_CAE_SERIAL_SUBSYSTEM        0xc022
    19381976
    19391977#define PCI_VENDOR_ID_KAWASAKI          0x136b
     
    19581996
    19591997#define PCI_VENDOR_ID_MOXA              0x1393
    1960 #define PCI_DEVICE_ID_MOXA_RC7000       0x0001
    1961 #define PCI_DEVICE_ID_MOXA_CP102        0x1020
    1962 #define PCI_DEVICE_ID_MOXA_CP102UL      0x1021
    1963 #define PCI_DEVICE_ID_MOXA_CP102U       0x1022
    1964 #define PCI_DEVICE_ID_MOXA_C104         0x1040
    1965 #define PCI_DEVICE_ID_MOXA_CP104U       0x1041
    1966 #define PCI_DEVICE_ID_MOXA_CP104JU      0x1042
    1967 #define PCI_DEVICE_ID_MOXA_CP104EL      0x1043
    1968 #define PCI_DEVICE_ID_MOXA_CT114        0x1140
    1969 #define PCI_DEVICE_ID_MOXA_CP114        0x1141
    1970 #define PCI_DEVICE_ID_MOXA_CP118U       0x1180
    1971 #define PCI_DEVICE_ID_MOXA_CP118EL      0x1181
    1972 #define PCI_DEVICE_ID_MOXA_CP132        0x1320
    1973 #define PCI_DEVICE_ID_MOXA_CP132U       0x1321
    1974 #define PCI_DEVICE_ID_MOXA_CP134U       0x1340
    1975 #define PCI_DEVICE_ID_MOXA_C168         0x1680
    1976 #define PCI_DEVICE_ID_MOXA_CP168U       0x1681
    1977 #define PCI_DEVICE_ID_MOXA_CP168EL      0x1682
    19781998#define PCI_DEVICE_ID_MOXA_CP204J       0x2040
    19791999#define PCI_DEVICE_ID_MOXA_C218         0x2180
     
    20352055
    20362056#define PCI_VENDOR_ID_MICROGATE         0x13c0
    2037 #define PCI_DEVICE_ID_MICROGATE_USC     0x0010
    2038 #define PCI_DEVICE_ID_MICROGATE_SCA     0x0030
    20392057
    20402058#define PCI_VENDOR_ID_3WARE             0x13C1
     
    20862104#define PCI_DEVICE_ID_VT1724            0x1724
    20872105
     2106#define PCI_VENDOR_ID_MICROSOFT         0x1414
     2107#define PCI_DEVICE_ID_HYPERV_VIDEO      0x5353
     2108
    20882109#define PCI_VENDOR_ID_OXSEMI            0x1415
    20892110#define PCI_DEVICE_ID_OXSEMI_12PCI840   0x8403
     
    21062127#define PCI_VENDOR_ID_CHELSIO           0x1425
    21072128
     2129#define PCI_VENDOR_ID_EDIMAX            0x1432
     2130
    21082131#define PCI_VENDOR_ID_ADLINK            0x144a
    21092132
     
    21152138
    21162139#define PCI_VENDOR_ID_MYRICOM           0x14c1
     2140
     2141#define PCI_VENDOR_ID_MEDIATEK          0x14c3
     2142#define PCI_DEVICE_ID_MEDIATEK_7629     0x7629
    21172143
    21182144#define PCI_VENDOR_ID_TITAN             0x14D2
     
    23472373
    23482374#define PCI_VENDOR_ID_SYNOPSYS          0x16c3
     2375#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3         0xabcd
     2376#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3_AXI     0xabce
     2377#define PCI_DEVICE_ID_SYNOPSYS_HAPSUSB31        0xabcf
     2378#define PCI_DEVICE_ID_SYNOPSYS_EDDA     0xedda
     2379
     2380#define PCI_VENDOR_ID_USR               0x16ec
    23492381
    23502382#define PCI_VENDOR_ID_VITESSE           0x1725
     
    23822414#define PCI_DEVICE_ID_RDC_D1010         0x1010
    23832415
     2416#define PCI_VENDOR_ID_GLI               0x17a0
     2417
    23842418#define PCI_VENDOR_ID_LENOVO            0x17aa
     2419
     2420#define PCI_VENDOR_ID_QCOM              0x17cb
     2421
     2422#define PCI_VENDOR_ID_CDNS              0x17cd
    23852423
    23862424#define PCI_VENDOR_ID_ARECA             0x17d3
     
    24342472#define PCI_DEVICE_ID_TDI_EHCI          0x0101
    24352473
    2436 #define PCI_VENDOR_ID_FREESCALE         0x1957
     2474#define PCI_VENDOR_ID_FREESCALE         0x1957  /* duplicate: NXP */
     2475#define PCI_VENDOR_ID_NXP               0x1957  /* duplicate: FREESCALE */
    24372476#define PCI_DEVICE_ID_MPC8308           0xc006
    24382477#define PCI_DEVICE_ID_MPC8315E          0x00b4
     
    25252564#define PCI_DEVICE_ID_KORENIX_JETCARDF3 0x17ff
    25262565
    2527 #define PCI_VENDOR_ID_HUAWEI            0x19e5
     2566#define PCI_VENDOR_ID_HUAWEI            0x19e5
     2567#define PCI_DEVICE_ID_HUAWEI_ZIP_VF     0xa251
     2568#define PCI_DEVICE_ID_HUAWEI_SEC_VF     0xa256
     2569#define PCI_DEVICE_ID_HUAWEI_HPRE_VF    0xa259
    25282570
    25292571#define PCI_VENDOR_ID_NETRONOME         0x19ee
    2530 #define PCI_DEVICE_ID_NETRONOME_NFP3200 0x3200
    2531 #define PCI_DEVICE_ID_NETRONOME_NFP3240 0x3240
     2572#define PCI_DEVICE_ID_NETRONOME_NFP3800 0x3800
    25322573#define PCI_DEVICE_ID_NETRONOME_NFP4000 0x4000
     2574#define PCI_DEVICE_ID_NETRONOME_NFP5000 0x5000
    25332575#define PCI_DEVICE_ID_NETRONOME_NFP6000 0x6000
     2576#define PCI_DEVICE_ID_NETRONOME_NFP3800_VF      0x3803
    25342577#define PCI_DEVICE_ID_NETRONOME_NFP6000_VF      0x6003
    25352578
     
    25442587#define PCI_VENDOR_ID_ASMEDIA           0x1b21
    25452588
     2589#define PCI_VENDOR_ID_REDHAT            0x1b36
     2590
     2591#define PCI_VENDOR_ID_SILICOM_DENMARK   0x1c2c
     2592
     2593#define PCI_VENDOR_ID_AMAZON_ANNAPURNA_LABS     0x1c36
     2594
    25462595#define PCI_VENDOR_ID_CIRCUITCO         0x1cc8
    25472596#define PCI_SUBSYSTEM_ID_CIRCUITCO_MINNOWBOARD  0x0001
     2597
     2598#define PCI_VENDOR_ID_AMAZON            0x1d0f
     2599
     2600#define PCI_VENDOR_ID_ZHAOXIN           0x1d17
     2601
     2602#define PCI_VENDOR_ID_HYGON             0x1d94
     2603
     2604#define PCI_VENDOR_ID_FUNGIBLE          0x1dad
     2605
     2606#define PCI_VENDOR_ID_HXT               0x1dbf
    25482607
    25492608#define PCI_VENDOR_ID_TEKRAM            0x1de1
     
    25542613#define PCI_DEVICE_ID_TEHUTI_3010       0x3010
    25552614#define PCI_DEVICE_ID_TEHUTI_3014       0x3014
     2615
     2616#define PCI_VENDOR_ID_SUNIX             0x1fd4
     2617#define PCI_DEVICE_ID_SUNIX_1999        0x1999
    25562618
    25572619#define PCI_VENDOR_ID_HINT             0x3388
     
    25942656#define PCI_DEVICE_ID_DCI_PCCOM2        0x0004
    25952657
     2658#define PCI_VENDOR_ID_GLENFLY           0x6766
     2659
    25962660#define PCI_VENDOR_ID_INTEL             0x8086
    25972661#define PCI_DEVICE_ID_INTEL_EESSC       0x0008
     2662#define PCI_DEVICE_ID_INTEL_HDA_CML_LP  0x02c8
    25982663#define PCI_DEVICE_ID_INTEL_PXHD_0      0x0320
    25992664#define PCI_DEVICE_ID_INTEL_PXHD_1      0x0321
    26002665#define PCI_DEVICE_ID_INTEL_PXH_0       0x0329
    2601 #define PCI_DEVICE_ID_INTEL_PXH_1       0x032A
    2602 #define PCI_DEVICE_ID_INTEL_PXHV        0x032C
     2666#define PCI_DEVICE_ID_INTEL_PXH_1       0x032a
     2667#define PCI_DEVICE_ID_INTEL_PXHV        0x032c
    26032668#define PCI_DEVICE_ID_INTEL_80332_0     0x0330
    26042669#define PCI_DEVICE_ID_INTEL_80332_1     0x0332
    26052670#define PCI_DEVICE_ID_INTEL_80333_0     0x0370
    26062671#define PCI_DEVICE_ID_INTEL_80333_1     0x0372
     2672#define PCI_DEVICE_ID_INTEL_QAT_DH895XCC        0x0435
     2673#define PCI_DEVICE_ID_INTEL_QAT_DH895XCC_VF     0x0443
    26072674#define PCI_DEVICE_ID_INTEL_82375       0x0482
    26082675#define PCI_DEVICE_ID_INTEL_82424       0x0483
    26092676#define PCI_DEVICE_ID_INTEL_82378       0x0484
     2677#define PCI_DEVICE_ID_INTEL_82425       0x0486
     2678#define PCI_DEVICE_ID_INTEL_HDA_CML_H   0x06c8
    26102679#define PCI_DEVICE_ID_INTEL_MRST_SD0    0x0807
    26112680#define PCI_DEVICE_ID_INTEL_MRST_SD1    0x0808
     2681#define PCI_DEVICE_ID_INTEL_HDA_OAKTRAIL        0x080a
    26122682#define PCI_DEVICE_ID_INTEL_MFD_SD      0x0820
    26132683#define PCI_DEVICE_ID_INTEL_MFD_SDIO1   0x0821
     
    26152685#define PCI_DEVICE_ID_INTEL_MFD_EMMC0   0x0823
    26162686#define PCI_DEVICE_ID_INTEL_MFD_EMMC1   0x0824
    2617 #define PCI_DEVICE_ID_INTEL_MRST_SD2    0x084F
    2618 #define PCI_DEVICE_ID_INTEL_QUARK_X1000_ILB     0x095E
     2687#define PCI_DEVICE_ID_INTEL_MRST_SD2    0x084f
     2688#define PCI_DEVICE_ID_INTEL_QUARK_X1000_ILB     0x095e
    26192689#define PCI_DEVICE_ID_INTEL_I960        0x0960
    26202690#define PCI_DEVICE_ID_INTEL_I960RM      0x0962
     2691#define PCI_DEVICE_ID_INTEL_HDA_HSW_0   0x0a0c
     2692#define PCI_DEVICE_ID_INTEL_DSA_SPR0    0x0b25
     2693#define PCI_DEVICE_ID_INTEL_HDA_HSW_2   0x0c0c
    26212694#define PCI_DEVICE_ID_INTEL_CENTERTON_ILB       0x0c60
     2695#define PCI_DEVICE_ID_INTEL_IAX_SPR0    0x0cfe
     2696#define PCI_DEVICE_ID_INTEL_HDA_HSW_3   0x0d0c
     2697#define PCI_DEVICE_ID_INTEL_HDA_BYT     0x0f04
     2698#define PCI_DEVICE_ID_INTEL_SST_BYT     0x0f28
    26222699#define PCI_DEVICE_ID_INTEL_8257X_SOL   0x1062
    26232700#define PCI_DEVICE_ID_INTEL_82573E_SOL  0x1085
    2624 #define PCI_DEVICE_ID_INTEL_82573L_SOL  0x108F
     2701#define PCI_DEVICE_ID_INTEL_82573L_SOL  0x108f
    26252702#define PCI_DEVICE_ID_INTEL_82815_MC    0x1130
    26262703#define PCI_DEVICE_ID_INTEL_82815_CGC   0x1132
     2704#define PCI_DEVICE_ID_INTEL_SST_TNG     0x119a
    26272705#define PCI_DEVICE_ID_INTEL_82092AA_0   0x1221
    2628 #define PCI_DEVICE_ID_INTEL_7505_0      0x2550
    2629 #define PCI_DEVICE_ID_INTEL_7205_0      0x255d
    26302706#define PCI_DEVICE_ID_INTEL_82437       0x122d
    26312707#define PCI_DEVICE_ID_INTEL_82371FB_0   0x122e
     
    26532729#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_4C_NHI     0x1577
    26542730#define PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_4C_BRIDGE  0x1578
     2731#define PCI_DEVICE_ID_INTEL_HDA_BDW     0x160c
    26552732#define PCI_DEVICE_ID_INTEL_80960_RP    0x1960
     2733#define PCI_DEVICE_ID_INTEL_QAT_C3XXX   0x19e2
     2734#define PCI_DEVICE_ID_INTEL_QAT_C3XXX_VF        0x19e3
    26562735#define PCI_DEVICE_ID_INTEL_82840_HB    0x1a21
    26572736#define PCI_DEVICE_ID_INTEL_82845_HB    0x1a30
    26582737#define PCI_DEVICE_ID_INTEL_IOAT        0x1a38
     2738#define PCI_DEVICE_ID_INTEL_HDA_CPT     0x1c20
    26592739#define PCI_DEVICE_ID_INTEL_COUGARPOINT_LPC_MIN 0x1c41
    26602740#define PCI_DEVICE_ID_INTEL_COUGARPOINT_LPC_MAX 0x1c5f
     2741#define PCI_DEVICE_ID_INTEL_HDA_PBG     0x1d20
    26612742#define PCI_DEVICE_ID_INTEL_PATSBURG_LPC_0      0x1d40
    26622743#define PCI_DEVICE_ID_INTEL_PATSBURG_LPC_1      0x1d41
     2744#define PCI_DEVICE_ID_INTEL_HDA_PPT     0x1e20
    26632745#define PCI_DEVICE_ID_INTEL_PANTHERPOINT_XHCI   0x1e31
    26642746#define PCI_DEVICE_ID_INTEL_PANTHERPOINT_LPC_MIN        0x1e40
    26652747#define PCI_DEVICE_ID_INTEL_PANTHERPOINT_LPC_MAX        0x1e5f
     2748#define PCI_DEVICE_ID_INTEL_VMD_201D    0x201d
     2749#define PCI_DEVICE_ID_INTEL_HDA_BSW     0x2284
     2750#define PCI_DEVICE_ID_INTEL_SST_BSW     0x22a8
    26662751#define PCI_DEVICE_ID_INTEL_DH89XXCC_LPC_MIN    0x2310
    26672752#define PCI_DEVICE_ID_INTEL_DH89XXCC_LPC_MAX    0x231f
     
    27132798#define PCI_DEVICE_ID_INTEL_82801EB_12  0x24dc
    27142799#define PCI_DEVICE_ID_INTEL_82801EB_13  0x24dd
    2715 #define PCI_DEVICE_ID_INTEL_ESB_1       0x25a1
    2716 #define PCI_DEVICE_ID_INTEL_ESB_2       0x25a2
    2717 #define PCI_DEVICE_ID_INTEL_ESB_4       0x25a4
    2718 #define PCI_DEVICE_ID_INTEL_ESB_5       0x25a6
    2719 #define PCI_DEVICE_ID_INTEL_ESB_9       0x25ab
    2720 #define PCI_DEVICE_ID_INTEL_ESB_10      0x25ac
    27212800#define PCI_DEVICE_ID_INTEL_82820_HB    0x2500
    27222801#define PCI_DEVICE_ID_INTEL_82820_UP_HB 0x2501
     
    27242803#define PCI_DEVICE_ID_INTEL_82860_HB    0x2531
    27252804#define PCI_DEVICE_ID_INTEL_E7501_MCH   0x254c
     2805#define PCI_DEVICE_ID_INTEL_7505_0      0x2550
     2806#define PCI_DEVICE_ID_INTEL_7205_0      0x255d
    27262807#define PCI_DEVICE_ID_INTEL_82845G_HB   0x2560
    27272808#define PCI_DEVICE_ID_INTEL_82845G_IG   0x2562
     
    27332814#define PCI_DEVICE_ID_INTEL_82915GM_HB  0x2590
    27342815#define PCI_DEVICE_ID_INTEL_82915GM_IG  0x2592
    2735 #define PCI_DEVICE_ID_INTEL_5000_ERR    0x25F0
    2736 #define PCI_DEVICE_ID_INTEL_5000_FBD0   0x25F5
    2737 #define PCI_DEVICE_ID_INTEL_5000_FBD1   0x25F6
    2738 #define PCI_DEVICE_ID_INTEL_82945G_HB   0x2770
    2739 #define PCI_DEVICE_ID_INTEL_82945G_IG   0x2772
    2740 #define PCI_DEVICE_ID_INTEL_3000_HB     0x2778
    2741 #define PCI_DEVICE_ID_INTEL_82945GM_HB  0x27A0
    2742 #define PCI_DEVICE_ID_INTEL_82945GM_IG  0x27A2
     2816#define PCI_DEVICE_ID_INTEL_ESB_1       0x25a1
     2817#define PCI_DEVICE_ID_INTEL_ESB_2       0x25a2
     2818#define PCI_DEVICE_ID_INTEL_ESB_4       0x25a4
     2819#define PCI_DEVICE_ID_INTEL_ESB_5       0x25a6
     2820#define PCI_DEVICE_ID_INTEL_ESB_9       0x25ab
     2821#define PCI_DEVICE_ID_INTEL_ESB_10      0x25ac
     2822#define PCI_DEVICE_ID_INTEL_5000_ERR    0x25f0
     2823#define PCI_DEVICE_ID_INTEL_5000_FBD0   0x25f5
     2824#define PCI_DEVICE_ID_INTEL_5000_FBD1   0x25f6
    27432825#define PCI_DEVICE_ID_INTEL_ICH6_0      0x2640
    27442826#define PCI_DEVICE_ID_INTEL_ICH6_1      0x2641
    27452827#define PCI_DEVICE_ID_INTEL_ICH6_2      0x2642
     2828#define PCI_DEVICE_ID_INTEL_HDA_ICH6    0x2668
    27462829#define PCI_DEVICE_ID_INTEL_ICH6_16     0x266a
    27472830#define PCI_DEVICE_ID_INTEL_ICH6_17     0x266d
     
    27502833#define PCI_DEVICE_ID_INTEL_ESB2_0      0x2670
    27512834#define PCI_DEVICE_ID_INTEL_ESB2_14     0x2698
     2835#define PCI_DEVICE_ID_INTEL_HDA_ESB2    0x269a
    27522836#define PCI_DEVICE_ID_INTEL_ESB2_17     0x269b
    27532837#define PCI_DEVICE_ID_INTEL_ESB2_18     0x269e
     2838#define PCI_DEVICE_ID_INTEL_82945G_HB   0x2770
     2839#define PCI_DEVICE_ID_INTEL_82945G_IG   0x2772
     2840#define PCI_DEVICE_ID_INTEL_3000_HB     0x2778
     2841#define PCI_DEVICE_ID_INTEL_82945GM_HB  0x27a0
     2842#define PCI_DEVICE_ID_INTEL_82945GM_IG  0x27a2
     2843#define PCI_DEVICE_ID_INTEL_ICH7_30     0x27b0
    27542844#define PCI_DEVICE_ID_INTEL_ICH7_0      0x27b8
    27552845#define PCI_DEVICE_ID_INTEL_ICH7_1      0x27b9
    2756 #define PCI_DEVICE_ID_INTEL_ICH7_30     0x27b0
    27572846#define PCI_DEVICE_ID_INTEL_TGP_LPC     0x27bc
    27582847#define PCI_DEVICE_ID_INTEL_ICH7_31     0x27bd
     2848#define PCI_DEVICE_ID_INTEL_HDA_ICH7    0x27d8
    27592849#define PCI_DEVICE_ID_INTEL_ICH7_17     0x27da
    27602850#define PCI_DEVICE_ID_INTEL_ICH7_19     0x27dd
     
    27672857#define PCI_DEVICE_ID_INTEL_ICH8_4      0x2815
    27682858#define PCI_DEVICE_ID_INTEL_ICH8_5      0x283e
     2859#define PCI_DEVICE_ID_INTEL_HDA_ICH8    0x284b
    27692860#define PCI_DEVICE_ID_INTEL_ICH8_6      0x2850
     2861#define PCI_DEVICE_ID_INTEL_VMD_28C0    0x28c0
    27702862#define PCI_DEVICE_ID_INTEL_ICH9_0      0x2910
    2771 #define PCI_DEVICE_ID_INTEL_ICH9_1      0x2917
    27722863#define PCI_DEVICE_ID_INTEL_ICH9_2      0x2912
    27732864#define PCI_DEVICE_ID_INTEL_ICH9_3      0x2913
    27742865#define PCI_DEVICE_ID_INTEL_ICH9_4      0x2914
     2866#define PCI_DEVICE_ID_INTEL_ICH9_7      0x2916
     2867#define PCI_DEVICE_ID_INTEL_ICH9_1      0x2917
     2868#define PCI_DEVICE_ID_INTEL_ICH9_8      0x2918
    27752869#define PCI_DEVICE_ID_INTEL_ICH9_5      0x2919
    27762870#define PCI_DEVICE_ID_INTEL_ICH9_6      0x2930
    2777 #define PCI_DEVICE_ID_INTEL_ICH9_7      0x2916
    2778 #define PCI_DEVICE_ID_INTEL_ICH9_8      0x2918
     2871#define PCI_DEVICE_ID_INTEL_HDA_ICH9_0  0x293e
     2872#define PCI_DEVICE_ID_INTEL_HDA_ICH9_1  0x293f
    27792873#define PCI_DEVICE_ID_INTEL_I7_MCR      0x2c18
    27802874#define PCI_DEVICE_ID_INTEL_I7_MC_TAD   0x2c19
     
    27932887#define PCI_DEVICE_ID_INTEL_I7_MC_CH2_RANK  0x2c32
    27942888#define PCI_DEVICE_ID_INTEL_I7_MC_CH2_TC    0x2c33
     2889#define PCI_DEVICE_ID_INTEL_I7_NONCORE_ALT 0x2c40
    27952890#define PCI_DEVICE_ID_INTEL_I7_NONCORE  0x2c41
    2796 #define PCI_DEVICE_ID_INTEL_I7_NONCORE_ALT 0x2c40
    27972891#define PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE     0x2c50
    27982892#define PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE_ALT 0x2c51
     
    28032897#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MCR         0x2c98
    28042898#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_TAD      0x2c99
    2805 #define PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_TEST     0x2c9C
     2899#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_TEST     0x2c9c
    28062900#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH0_CTRL 0x2ca0
    28072901#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH0_ADDR 0x2ca1
     
    28282922#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH2_RANK_REV2  0x2db2
    28292923#define PCI_DEVICE_ID_INTEL_LYNNFIELD_MC_CH2_TC_REV2    0x2db3
     2924#define PCI_DEVICE_ID_INTEL_HDA_GML     0x3198
    28302925#define PCI_DEVICE_ID_INTEL_82855PM_HB  0x3340
    28312926#define PCI_DEVICE_ID_INTEL_IOAT_TBG4   0x3429
     
    28382933#define PCI_DEVICE_ID_INTEL_IOAT_TBG2   0x3432
    28392934#define PCI_DEVICE_ID_INTEL_IOAT_TBG3   0x3433
     2935#define PCI_DEVICE_ID_INTEL_HDA_ICL_LP  0x34c8
    28402936#define PCI_DEVICE_ID_INTEL_82830_HB    0x3575
    28412937#define PCI_DEVICE_ID_INTEL_82830_CGC   0x3577
     2938#define PCI_DEVICE_ID_INTEL_82855GM_HB  0x3580
     2939#define PCI_DEVICE_ID_INTEL_82855GM_IG  0x3582
    28422940#define PCI_DEVICE_ID_INTEL_82854_HB    0x358c
    28432941#define PCI_DEVICE_ID_INTEL_82854_IG    0x358e
    2844 #define PCI_DEVICE_ID_INTEL_82855GM_HB  0x3580
    2845 #define PCI_DEVICE_ID_INTEL_82855GM_IG  0x3582
    28462942#define PCI_DEVICE_ID_INTEL_E7520_MCH   0x3590
    28472943#define PCI_DEVICE_ID_INTEL_E7320_MCH   0x3592
     
    28532949#define PCI_DEVICE_ID_INTEL_MCH_PC1     0x359a
    28542950#define PCI_DEVICE_ID_INTEL_E7525_MCH   0x359e
     2951#define PCI_DEVICE_ID_INTEL_IOAT_CNB    0x360b
     2952#define PCI_DEVICE_ID_INTEL_FBD_CNB     0x360c
    28552953#define PCI_DEVICE_ID_INTEL_I7300_MCH_ERR 0x360c
    28562954#define PCI_DEVICE_ID_INTEL_I7300_MCH_FB0 0x360f
    28572955#define PCI_DEVICE_ID_INTEL_I7300_MCH_FB1 0x3610
    2858 #define PCI_DEVICE_ID_INTEL_IOAT_CNB    0x360b
    2859 #define PCI_DEVICE_ID_INTEL_FBD_CNB     0x360c
    28602956#define PCI_DEVICE_ID_INTEL_IOAT_JSF0   0x3710
    28612957#define PCI_DEVICE_ID_INTEL_IOAT_JSF1   0x3711
     
    28682964#define PCI_DEVICE_ID_INTEL_IOAT_JSF8   0x3718
    28692965#define PCI_DEVICE_ID_INTEL_IOAT_JSF9   0x3719
     2966#define PCI_DEVICE_ID_INTEL_QAT_C62X    0x37c8
     2967#define PCI_DEVICE_ID_INTEL_QAT_C62X_VF 0x37c9
     2968#define PCI_DEVICE_ID_INTEL_HDA_ICL_N   0x38c8
    28702969#define PCI_DEVICE_ID_INTEL_ICH10_0     0x3a14
    28712970#define PCI_DEVICE_ID_INTEL_ICH10_1     0x3a16
     
    28732972#define PCI_DEVICE_ID_INTEL_ICH10_3     0x3a1a
    28742973#define PCI_DEVICE_ID_INTEL_ICH10_4     0x3a30
     2974#define PCI_DEVICE_ID_INTEL_HDA_ICH10_0 0x3a3e
    28752975#define PCI_DEVICE_ID_INTEL_ICH10_5     0x3a60
     2976#define PCI_DEVICE_ID_INTEL_HDA_ICH10_1 0x3a6e
    28762977#define PCI_DEVICE_ID_INTEL_5_3400_SERIES_LPC_MIN       0x3b00
    28772978#define PCI_DEVICE_ID_INTEL_5_3400_SERIES_LPC_MAX       0x3b1f
     2979#define PCI_DEVICE_ID_INTEL_HDA_5_3400_SERIES_0 0x3b56
     2980#define PCI_DEVICE_ID_INTEL_HDA_5_3400_SERIES_1 0x3b57
    28782981#define PCI_DEVICE_ID_INTEL_IOAT_SNB0   0x3c20
    28792982#define PCI_DEVICE_ID_INTEL_IOAT_SNB1   0x3c21
     
    28862989#define PCI_DEVICE_ID_INTEL_IOAT_SNB8   0x3c2e
    28872990#define PCI_DEVICE_ID_INTEL_IOAT_SNB9   0x3c2f
    2888 #define PCI_DEVICE_ID_INTEL_UNC_HA      0x3c46
    2889 #define PCI_DEVICE_ID_INTEL_UNC_IMC0    0x3cb0
    2890 #define PCI_DEVICE_ID_INTEL_UNC_IMC1    0x3cb1
    2891 #define PCI_DEVICE_ID_INTEL_UNC_IMC2    0x3cb4
    2892 #define PCI_DEVICE_ID_INTEL_UNC_IMC3    0x3cb5
    28932991#define PCI_DEVICE_ID_INTEL_UNC_QPI0    0x3c41
    28942992#define PCI_DEVICE_ID_INTEL_UNC_QPI1    0x3c42
     
    28962994#define PCI_DEVICE_ID_INTEL_UNC_R3QPI0  0x3c44
    28972995#define PCI_DEVICE_ID_INTEL_UNC_R3QPI1  0x3c45
     2996#define PCI_DEVICE_ID_INTEL_UNC_HA      0x3c46
    28982997#define PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_RAS     0x3c71  /* 15.1 */
    28992998#define PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_ERR0    0x3c72  /* 16.2 */
     
    29073006#define PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_TAD2    0x3cac  /* 15.4 */
    29083007#define PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_TAD3    0x3cad  /* 15.5 */
     3008#define PCI_DEVICE_ID_INTEL_UNC_IMC0    0x3cb0
     3009#define PCI_DEVICE_ID_INTEL_UNC_IMC1    0x3cb1
     3010#define PCI_DEVICE_ID_INTEL_UNC_IMC2    0x3cb4
     3011#define PCI_DEVICE_ID_INTEL_UNC_IMC3    0x3cb5
    29093012#define PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_DDRIO   0x3cb8  /* 17.0 */
    29103013#define PCI_DEVICE_ID_INTEL_JAKETOWN_UBOX       0x3ce0
     
    29123015#define PCI_DEVICE_ID_INTEL_SBRIDGE_BR          0x3cf5  /* 13.6 */
    29133016#define PCI_DEVICE_ID_INTEL_SBRIDGE_SAD1        0x3cf6  /* 12.7 */
     3017#define PCI_DEVICE_ID_INTEL_HDA_ICL_H   0x3dc8
    29143018#define PCI_DEVICE_ID_INTEL_IOAT_SNB    0x402f
     3019#define PCI_DEVICE_ID_INTEL_5400_ERR    0x4030
     3020#define PCI_DEVICE_ID_INTEL_5400_FBD0   0x4035
     3021#define PCI_DEVICE_ID_INTEL_5400_FBD1   0x4036
     3022#define PCI_DEVICE_ID_INTEL_HDA_TGL_H   0x43c8
     3023#define PCI_DEVICE_ID_INTEL_HDA_DG1     0x490d
     3024#define PCI_DEVICE_ID_INTEL_HDA_EHL_0   0x4b55
     3025#define PCI_DEVICE_ID_INTEL_HDA_EHL_3   0x4b58
     3026#define PCI_DEVICE_ID_INTEL_HDA_JSL_N   0x4dc8
     3027#define PCI_DEVICE_ID_INTEL_HDA_DG2_0   0x4f90
     3028#define PCI_DEVICE_ID_INTEL_HDA_DG2_1   0x4f91
     3029#define PCI_DEVICE_ID_INTEL_HDA_DG2_2   0x4f92
     3030#define PCI_DEVICE_ID_INTEL_EP80579_0   0x5031
     3031#define PCI_DEVICE_ID_INTEL_EP80579_1   0x5032
     3032#define PCI_DEVICE_ID_INTEL_HDA_ADL_P   0x51c8
     3033#define PCI_DEVICE_ID_INTEL_HDA_ADL_PS  0x51c9
     3034#define PCI_DEVICE_ID_INTEL_HDA_RPL_P_0 0x51ca
     3035#define PCI_DEVICE_ID_INTEL_HDA_RPL_P_1 0x51cb
     3036#define PCI_DEVICE_ID_INTEL_HDA_ADL_M   0x51cc
     3037#define PCI_DEVICE_ID_INTEL_HDA_ADL_PX  0x51cd
     3038#define PCI_DEVICE_ID_INTEL_HDA_RPL_M   0x51ce
     3039#define PCI_DEVICE_ID_INTEL_HDA_RPL_PX  0x51cf
     3040#define PCI_DEVICE_ID_INTEL_HDA_ADL_N   0x54c8
     3041#define PCI_DEVICE_ID_INTEL_HDA_APL     0x5a98
    29153042#define PCI_DEVICE_ID_INTEL_5100_16     0x65f0
    29163043#define PCI_DEVICE_ID_INTEL_5100_19     0x65f3
    29173044#define PCI_DEVICE_ID_INTEL_5100_21     0x65f5
    29183045#define PCI_DEVICE_ID_INTEL_5100_22     0x65f6
    2919 #define PCI_DEVICE_ID_INTEL_5400_ERR    0x4030
    2920 #define PCI_DEVICE_ID_INTEL_5400_FBD0   0x4035
    2921 #define PCI_DEVICE_ID_INTEL_5400_FBD1   0x4036
    29223046#define PCI_DEVICE_ID_INTEL_IOAT_SCNB   0x65ff
    2923 #define PCI_DEVICE_ID_INTEL_EP80579_0   0x5031
    2924 #define PCI_DEVICE_ID_INTEL_EP80579_1   0x5032
    29253047#define PCI_DEVICE_ID_INTEL_82371SB_0   0x7000
    29263048#define PCI_DEVICE_ID_INTEL_82371SB_1   0x7010
     
    29523074#define PCI_DEVICE_ID_INTEL_82372FB_1   0x7601
    29533075#define PCI_DEVICE_ID_INTEL_HDA_ARL     0x7728
     3076#define PCI_DEVICE_ID_INTEL_HDA_RPL_S   0x7a50
     3077#define PCI_DEVICE_ID_INTEL_HDA_ADL_S   0x7ad0
     3078#define PCI_DEVICE_ID_INTEL_HDA_MTL     0x7e28
     3079#define PCI_DEVICE_ID_INTEL_HDA_ARL_S   0x7f50
    29543080#define PCI_DEVICE_ID_INTEL_SCH_LPC     0x8119
    29553081#define PCI_DEVICE_ID_INTEL_SCH_IDE     0x811a
     3082#define PCI_DEVICE_ID_INTEL_HDA_POULSBO 0x811b
    29563083#define PCI_DEVICE_ID_INTEL_E6XX_CU     0x8183
    29573084#define PCI_DEVICE_ID_INTEL_ITC_LPC     0x8186
     
    29623089#define PCI_DEVICE_ID_INTEL_84460GX     0x84ea
    29633090#define PCI_DEVICE_ID_INTEL_IXP4XX      0x8500
     3091#define PCI_DEVICE_ID_INTEL_HDA_LPT     0x8c20
     3092#define PCI_DEVICE_ID_INTEL_HDA_9_SERIES        0x8ca0
     3093#define PCI_DEVICE_ID_INTEL_HDA_WBG_0   0x8d20
     3094#define PCI_DEVICE_ID_INTEL_HDA_WBG_1   0x8d21
    29643095#define PCI_DEVICE_ID_INTEL_IXP2800     0x9004
     3096#define PCI_DEVICE_ID_INTEL_HDA_LKF     0x98c8
     3097#define PCI_DEVICE_ID_INTEL_VMD_9A0B    0x9a0b
     3098#define PCI_DEVICE_ID_INTEL_HDA_LPT_LP_0        0x9c20
     3099#define PCI_DEVICE_ID_INTEL_HDA_LPT_LP_1        0x9c21
     3100#define PCI_DEVICE_ID_INTEL_HDA_WPT_LP  0x9ca0
     3101#define PCI_DEVICE_ID_INTEL_HDA_SKL_LP  0x9d70
     3102#define PCI_DEVICE_ID_INTEL_HDA_KBL_LP  0x9d71
     3103#define PCI_DEVICE_ID_INTEL_HDA_CNL_LP  0x9dc8
     3104#define PCI_DEVICE_ID_INTEL_HDA_TGL_LP  0xa0c8
     3105#define PCI_DEVICE_ID_INTEL_HDA_SKL     0xa170
     3106#define PCI_DEVICE_ID_INTEL_HDA_KBL     0xa171
     3107#define PCI_DEVICE_ID_INTEL_HDA_LBG_0   0xa1f0
     3108#define PCI_DEVICE_ID_INTEL_HDA_LBG_1   0xa270
     3109#define PCI_DEVICE_ID_INTEL_HDA_KBL_H   0xa2f0
     3110#define PCI_DEVICE_ID_INTEL_HDA_CNL_H   0xa348
     3111#define PCI_DEVICE_ID_INTEL_HDA_CML_S   0xa3f0
     3112#define PCI_DEVICE_ID_INTEL_HDA_LNL_P   0xa828
    29653113#define PCI_DEVICE_ID_INTEL_S21152BB    0xb152
     3114#define PCI_DEVICE_ID_INTEL_HDA_CML_R   0xf0c8
     3115#define PCI_DEVICE_ID_INTEL_HDA_RKL_S   0xf1c8
     3116
     3117#define PCI_VENDOR_ID_WANGXUN           0x8088
    29663118
    29673119#define PCI_VENDOR_ID_SCALEMP           0x8686
     
    30453197#define PCI_VENDOR_ID_3COM_2            0xa727
    30463198
     3199#define PCI_VENDOR_ID_SOLIDRUN          0xd063
     3200
    30473201#define PCI_VENDOR_ID_DIGIUM            0xd161
    30483202#define PCI_DEVICE_ID_DIGIUM_HFC4S      0xb410
  • GPL/branches/uniaud32-exp/include/linux/pm.h

    r750 r763  
    295295 * to RAM and hibernation.
    296296 */
     297#define DEFINE_SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
     298const struct dev_pm_ops name = { \
     299        SET_SYSTEM_SLEEP_PM_OPS(suspend_fn, resume_fn) \
     300}
     301
     302
    297303#define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
    298304const struct dev_pm_ops name = { \
     
    342348#define PMSG_THAW       0
    343349#define PMSG_RESTORE    0
    344 
     350#define pm_sleep_ptr(_ptr) _ptr
    345351#endif /* _LINUX_PM_H */
  • GPL/branches/uniaud32-exp/include/linux/regmap.h

    r652 r763  
    4545        REGCACHE_COMPRESSED,
    4646        REGCACHE_FLAT,
     47        REGCACHE_MAPLE,
    4748};
    4849
     
    11201121void regcache_cache_bypass(struct regmap *map, bool enable);
    11211122void regcache_mark_dirty(struct regmap *map);
     1123bool regcache_reg_cached(struct regmap *map, unsigned int reg);
    11221124
    11231125bool regmap_check_range_table(struct regmap *map, unsigned int reg,
  • GPL/branches/uniaud32-exp/include/linux/uaccess.h

    r647 r763  
    22#define _LINUX_UACCESS_H
    33#include <asm/uaccess.h>
     4#include <linux/minmax.h>
    45
    56#endif /* _LINUX_UACCESS_H */
  • GPL/branches/uniaud32-exp/include/linux/uio.h

    r615 r763  
    44#define _LINUX_UIO_H
    55
    6 enum {
    7         ITER_IOVEC = 0,
    8         ITER_KVEC = 2,
    9         ITER_BVEC = 4,
     6#include <linux/types.h>
     7
     8enum iter_type {
     9        /* iter types */
     10        ITER_IOVEC,
     11        ITER_KVEC,
     12        ITER_BVEC,
     13        ITER_XARRAY,
     14        ITER_DISCARD,
     15        ITER_UBUF,
     16};
     17
     18#define ITER_SOURCE     1       // == WRITE
     19#define ITER_DEST       0       // == READ
     20
     21struct kvec {
     22        void *iov_base; /* and that should *never* hold a userland pointer */
     23        size_t iov_len;
    1024};
    1125
     
    2034
    2135struct iov_iter {
    22         int type;
    23         size_t iov_offset;
    24         size_t count;
     36        u8 iter_type;
     37        bool copy_mc;
     38        bool nofault;
     39        bool data_source;
     40        bool user_backed;
     41        union {
     42                /*
     43                 * This really should be a const, but we cannot do that without
     44                 * also modifying any of the zero-filling iter init functions.
     45                 * Leave it non-const for now, but it should be treated as such.
     46                 */
     47                struct iovec __ubuf_iovec;
     48                struct {
     49                        union {
     50                                /* use iter_iov() to get the current vec */
     51                                const struct iovec *__iov;
     52                                void __user *ubuf;
     53                        };
     54                        size_t count;
     55                };
     56        };
    2557        union {
    2658                const struct iovec *iov;
     
    3365static inline bool iter_is_iovec(const struct iov_iter *i)
    3466{
    35         return !(i->type & (ITER_BVEC | ITER_KVEC));
     67        return !(i->iter_type & (ITER_BVEC | ITER_KVEC));
    3668}
    3769
     70static inline const struct iovec *iter_iov(const struct iov_iter *iter)
     71{
     72        if (iter->iter_type == ITER_UBUF)
     73                return (const struct iovec *) &iter->__ubuf_iovec;
     74        return iter->__iov;
     75}
     76int import_ubuf(int type, void __user *buf, size_t len, struct iov_iter *i);
     77
    3878#endif /* _LINUX_UIO_H */
  • GPL/branches/uniaud32-exp/lib32/regcache.c

    r724 r763  
    562562EXPORT_SYMBOL_GPL(regcache_cache_bypass);
    563563
     564/**
     565 * regcache_reg_cached - Check if a register is cached
     566 *
     567 * @map: map to check
     568 * @reg: register to check
     569 *
     570 * Reports if a register is cached.
     571 */
     572bool regcache_reg_cached(struct regmap *map, unsigned int reg)
     573{
     574        unsigned int val;
     575        int ret;
     576
     577        map->lock(map->lock_arg);
     578
     579        ret = regcache_read(map, reg, &val);
     580
     581        map->unlock(map->lock_arg);
     582
     583        return ret == 0;
     584}
     585EXPORT_SYMBOL_GPL(regcache_reg_cached);
     586
    564587bool regcache_set_val(struct regmap *map, void *base, unsigned int idx,
    565588                      unsigned int val)
Note: See TracChangeset for help on using the changeset viewer.