msi: Add setup/map function
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 25 Dec 2011 11:46:03 +0000 (19:46 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 27 Dec 2011 05:44:42 +0000 (13:44 +0800)
commitc9852c4cdc5706115542e9c0f6228b2612e359d4
tree195b1533bacf9e6638ce5dac89eeb6dbb4412e42
parentbe16ed471f65a2d3a45dbdec1c193b9ce84b2627
msi: Add setup/map function

- msi_setup, setup the IDT entry properly
- msi_map, return the MSI address and MSI data according to the
  'intr' and 'cpuid'

The various MSI macros forming MSI address/data are taken from FreeBSD
sys/platform/pc64/conf/files
sys/platform/pc64/include/msi_var.h [new file with mode: 0644]
sys/platform/pc64/x86_64/msi.c [new file with mode: 0644]