Lines Matching refs:mpch
107 mpt_build_mpch(mpcth_t mpch) in mpt_build_mpch() argument
109 memset(mpch, 0, sizeof(*mpch)); in mpt_build_mpch()
110 memcpy(mpch->signature, MPCH_SIG, 4); in mpt_build_mpch()
111 mpch->spec_rev = MP_SPECREV; in mpt_build_mpch()
112 memcpy(mpch->oem_id, MPCH_OEMID, MPCH_OEMID_LEN); in mpt_build_mpch()
113 memcpy(mpch->product_id, MPCH_PRODID, MPCH_PRODID_LEN); in mpt_build_mpch()
114 mpch->apic_address = LAPIC_PADDR; in mpt_build_mpch()
310 mpcth_t mpch; in mptable_build() local
346 mpch = (mpcth_t)curraddr; in mptable_build()
347 mpt_build_mpch(mpch); in mptable_build()
348 curraddr += sizeof(*mpch); in mptable_build()
353 mpch->entry_count += ncpu; in mptable_build()
358 mpch->entry_count += MPE_NUM_BUSES; in mptable_build()
365 mpch->entry_count++; in mptable_build()
371 mpch->entry_count += ioints; in mptable_build()
377 mpch->entry_count += MPEII_NUM_LOCAL_IRQ; in mptable_build()
380 mpch->oem_table_pointer = curraddr - startaddr + MPTABLE_BASE; in mptable_build()
381 mpch->oem_table_size = oem_tbl_size; in mptable_build()
385 mpch->base_table_length = curraddr - (char *)mpch; in mptable_build()
386 mpch->checksum = mpt_compute_checksum(mpch, mpch->base_table_length); in mptable_build()