elan-mmcr.c (111647) | elan-mmcr.c (111815) |
---|---|
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 * | 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 111647 2003-02-27 21:13:08Z phk $ | 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 = { | 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 /* open */ nullopen, 175 /* close */ nullclose, 176 /* read */ noread, 177 /* write */ elan_write, 178 /* ioctl */ elan_ioctl, 179 /* poll */ nopoll, 180 /* mmap */ elan_mmap, 181 /* strategy */ nostrategy, 182 /* name */ "elan", 183 /* maj */ CDEV_MAJOR, 184 /* dump */ nodump, 185 /* psize */ nopsize, 186 /* flags */ 0, | 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, |
187}; 188 189static void 190elan_drvinit(void) 191{ 192 193 if (elan_mmcr == NULL) 194 return; --- 217 unchanged lines hidden --- | 181}; 182 183static void 184elan_drvinit(void) 185{ 186 187 if (elan_mmcr == NULL) 188 return; --- 217 unchanged lines hidden --- |