MODULE_LICENSE("GPL");
 
 #define DEFAULT_UCODE_DATASIZE         (2000)    /* 2000 bytes */
-#define MC_HEADER_SIZE         (sizeof(struct microcode_header))         /* 48 bytes */
+#define MC_HEADER_SIZE         (sizeof(struct microcode_header_intel)) /* 48 bytes */
 #define DEFAULT_UCODE_TOTALSIZE (DEFAULT_UCODE_DATASIZE + MC_HEADER_SIZE) /* 2048 bytes */
 #define EXT_HEADER_SIZE                (sizeof(struct extended_sigtable)) /* 20 bytes */
 #define EXT_SIGNATURE_SIZE     (sizeof(struct extended_signature)) /* 12 bytes */
 #define DWSIZE                 (sizeof(u32))
 #define get_totalsize(mc) \
-       (((struct microcode *)mc)->hdr.totalsize ? \
-        ((struct microcode *)mc)->hdr.totalsize : DEFAULT_UCODE_TOTALSIZE)
+       (((struct microcode_intel *)mc)->hdr.totalsize ? \
+        ((struct microcode_intel *)mc)->hdr.totalsize : \
+        DEFAULT_UCODE_TOTALSIZE)
+
 #define get_datasize(mc) \
-       (((struct microcode *)mc)->hdr.datasize ? \
-        ((struct microcode *)mc)->hdr.datasize : DEFAULT_UCODE_DATASIZE)
+       (((struct microcode_intel *)mc)->hdr.datasize ? \
+        ((struct microcode_intel *)mc)->hdr.datasize : DEFAULT_UCODE_DATASIZE)
 
 #define sigmatch(s1, s2, p1, p2) \
        (((s1) == (s2)) && (((p1) & (p2)) || (((p1) == 0) && ((p2) == 0))))
        /* We should bind the task to the CPU */
        BUG_ON(raw_smp_processor_id() != cpu_num);
        uci->pf = uci->rev = 0;
-       uci->mc = NULL;
+       uci->mc.mc_intel = NULL;
        uci->valid = 1;
 
        if (c->x86_vendor != X86_VENDOR_INTEL || c->x86 < 6 ||
 }
 
 static inline int microcode_update_match(int cpu_num,
-       struct microcode_header *mc_header, int sig, int pf)
+       struct microcode_header_intel *mc_header, int sig, int pf)
 {
        struct ucode_cpu_info *uci = ucode_cpu_info + cpu_num;
 
 
 int microcode_sanity_check(void *mc)
 {
-       struct microcode_header *mc_header = mc;
+       struct microcode_header_intel *mc_header = mc;
        struct extended_sigtable *ext_header = NULL;
        struct extended_signature *ext_sig;
        unsigned long total_size, data_size, ext_table_size;
 int get_matching_microcode(void *mc, int cpu)
 {
        struct ucode_cpu_info *uci = ucode_cpu_info + cpu;
-       struct microcode_header *mc_header = mc;
+       struct microcode_header_intel *mc_header = mc;
        struct extended_sigtable *ext_header;
        unsigned long total_size = get_totalsize(mc_header);
        int ext_sigcount, i;
        }
 
        /* free previous update file */
-       vfree(uci->mc);
+       vfree(uci->mc.mc_intel);
 
        memcpy(new_mc, mc, total_size);
-       uci->mc = new_mc;
+       uci->mc.mc_intel = new_mc;
        return 1;
 }
 
        /* We should bind the task to the CPU */
        BUG_ON(cpu_num != cpu);
 
-       if (uci->mc == NULL)
+       if (uci->mc.mc_intel == NULL)
                return;
 
        /* serialize access to the physical write to MSR 0x79 */
 
        /* write microcode via MSR 0x79 */
        wrmsr(MSR_IA32_UCODE_WRITE,
-               (unsigned long) uci->mc->bits,
-               (unsigned long) uci->mc->bits >> 16 >> 16);
+             (unsigned long) uci->mc.mc_intel->bits,
+             (unsigned long) uci->mc.mc_intel->bits >> 16 >> 16);
        wrmsr(MSR_IA32_UCODE_REV, 0, 0);
 
        /* see notes above for revision 1.07.  Apparent chip bug */
        rdmsr(MSR_IA32_UCODE_REV, val[0], val[1]);
 
        spin_unlock_irqrestore(µcode_update_lock, flags);
-       if (val[1] != uci->mc->hdr.rev) {
+       if (val[1] != uci->mc.mc_intel->hdr.rev) {
                printk(KERN_ERR "microcode: CPU%d update from revision "
                        "0x%x to 0x%x failed\n", cpu_num, uci->rev, val[1]);
                return;
        }
        printk(KERN_INFO "microcode: CPU%d updated from revision "
               "0x%x to 0x%x, date = %08x \n",
-              cpu_num, uci->rev, val[1], uci->mc->hdr.date);
+              cpu_num, uci->rev, val[1], uci->mc.mc_intel->hdr.date);
        uci->rev = val[1];
 }
 
 
 long get_next_ucode(void **mc, long offset)
 {
-       struct microcode_header mc_header;
+       struct microcode_header_intel mc_header;
        unsigned long total_size;
 
        /* No more data */
 static long get_next_ucode_from_buffer(void **mc, const u8 *buf,
        unsigned long size, long offset)
 {
-       struct microcode_header *mc_header;
+       struct microcode_header_intel *mc_header;
        unsigned long total_size;
 
        /* No more data */
        if (offset >= size)
                return 0;
-       mc_header = (struct microcode_header *)(buf + offset);
+       mc_header = (struct microcode_header_intel *)(buf + offset);
        total_size = get_totalsize(mc_header);
 
        if (offset + total_size > size) {
        int err = 0;
 
        /* Check if the microcode is available */
-       if (!uci->mc)
+       if (!uci->mc.mc_intel)
                return 0;
 
        old = current->cpus_allowed;
 
        mutex_lock(µcode_mutex);
        uci->valid = 0;
-       kfree(uci->mc);
-       uci->mc = NULL;
+       kfree(uci->mc.mc_intel);
+       uci->mc.mc_intel = NULL;
        mutex_unlock(µcode_mutex);
 }