1/* 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@FreeBSD.org> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 * |
9 * $FreeBSD: head/sys/i386/i386/elan-mmcr.c 111815 2003-03-03 12:15:54Z phk $ |
10 * 11 * The AMD Elan sc520 is a system-on-chip gadget which is used in embedded 12 * kind of things, see www.soekris.com for instance, and it has a few quirks 13 * we need to deal with. 14 * Unfortunately we cannot identify the gadget by CPUID output because it 15 * depends on strapping options and only the stepping field may be useful 16 * and those are undocumented from AMDs side. 17 * --- 148 unchanged lines hidden (view full) --- 166static d_ioctl_t elan_ioctl; 167static d_mmap_t elan_mmap; 168 169#define ELAN_MMCR 0 170#define ELAN_ERRLED 1 171 172#define CDEV_MAJOR 100 /* Share with xrpu */ 173static struct cdevsw elan_cdevsw = { |
174 .d_open = nullopen, 175 .d_close = nullclose, 176 .d_write = elan_write, 177 .d_ioctl = elan_ioctl, 178 .d_mmap = elan_mmap, 179 .d_name = "elan", 180 .d_maj = CDEV_MAJOR, |
181}; 182 183static void 184elan_drvinit(void) 185{ 186 187 if (elan_mmcr == NULL) 188 return; --- 217 unchanged lines hidden --- |