setup.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  1. /*
  2. * Copyright (C) 1995 Linus Torvalds
  3. * Adapted from 'alpha' version by Gary Thomas
  4. * Modified by Cort Dougan (cort@cs.nmt.edu)
  5. */
  6. /*
  7. * bootup setup stuff..
  8. */
  9. #include <linux/errno.h>
  10. #include <linux/sched.h>
  11. #include <linux/kernel.h>
  12. #include <linux/mm.h>
  13. #include <linux/stddef.h>
  14. #include <linux/unistd.h>
  15. #include <linux/ptrace.h>
  16. #include <linux/slab.h>
  17. #include <linux/user.h>
  18. #include <linux/tty.h>
  19. #include <linux/major.h>
  20. #include <linux/interrupt.h>
  21. #include <linux/reboot.h>
  22. #include <linux/init.h>
  23. #include <linux/pci.h>
  24. #include <linux/utsrelease.h>
  25. #include <linux/adb.h>
  26. #include <linux/module.h>
  27. #include <linux/delay.h>
  28. #include <linux/console.h>
  29. #include <linux/seq_file.h>
  30. #include <linux/root_dev.h>
  31. #include <linux/initrd.h>
  32. #include <linux/timer.h>
  33. #include <asm/io.h>
  34. #include <asm/pgtable.h>
  35. #include <asm/prom.h>
  36. #include <asm/pci-bridge.h>
  37. #include <asm/dma.h>
  38. #include <asm/machdep.h>
  39. #include <asm/irq.h>
  40. #include <asm/hydra.h>
  41. #include <asm/sections.h>
  42. #include <asm/time.h>
  43. #include <asm/i8259.h>
  44. #include <asm/mpic.h>
  45. #include <asm/rtas.h>
  46. #include <asm/xmon.h>
  47. #include "chrp.h"
  48. #include "gg2.h"
  49. void rtas_indicator_progress(char *, unsigned short);
  50. int _chrp_type;
  51. EXPORT_SYMBOL(_chrp_type);
  52. static struct mpic *chrp_mpic;
  53. /* Used for doing CHRP event-scans */
  54. DEFINE_PER_CPU(struct timer_list, heartbeat_timer);
  55. unsigned long event_scan_interval;
  56. extern unsigned long loops_per_jiffy;
  57. /* To be replaced by RTAS when available */
  58. static unsigned int __iomem *briq_SPOR;
  59. #ifdef CONFIG_SMP
  60. extern struct smp_ops_t chrp_smp_ops;
  61. #endif
  62. static const char *gg2_memtypes[4] = {
  63. "FPM", "SDRAM", "EDO", "BEDO"
  64. };
  65. static const char *gg2_cachesizes[4] = {
  66. "256 KB", "512 KB", "1 MB", "Reserved"
  67. };
  68. static const char *gg2_cachetypes[4] = {
  69. "Asynchronous", "Reserved", "Flow-Through Synchronous",
  70. "Pipelined Synchronous"
  71. };
  72. static const char *gg2_cachemodes[4] = {
  73. "Disabled", "Write-Through", "Copy-Back", "Transparent Mode"
  74. };
  75. static const char *chrp_names[] = {
  76. "Unknown",
  77. "","","",
  78. "Motorola",
  79. "IBM or Longtrail",
  80. "Genesi Pegasos",
  81. "Total Impact Briq"
  82. };
  83. void chrp_show_cpuinfo(struct seq_file *m)
  84. {
  85. int i, sdramen;
  86. unsigned int t;
  87. struct device_node *root;
  88. const char *model = "";
  89. root = of_find_node_by_path("/");
  90. if (root)
  91. model = of_get_property(root, "model", NULL);
  92. seq_printf(m, "machine\t\t: CHRP %s\n", model);
  93. /* longtrail (goldengate) stuff */
  94. if (model && !strncmp(model, "IBM,LongTrail", 13)) {
  95. /* VLSI VAS96011/12 `Golden Gate 2' */
  96. /* Memory banks */
  97. sdramen = (in_le32(gg2_pci_config_base + GG2_PCI_DRAM_CTRL)
  98. >>31) & 1;
  99. for (i = 0; i < (sdramen ? 4 : 6); i++) {
  100. t = in_le32(gg2_pci_config_base+
  101. GG2_PCI_DRAM_BANK0+
  102. i*4);
  103. if (!(t & 1))
  104. continue;
  105. switch ((t>>8) & 0x1f) {
  106. case 0x1f:
  107. model = "4 MB";
  108. break;
  109. case 0x1e:
  110. model = "8 MB";
  111. break;
  112. case 0x1c:
  113. model = "16 MB";
  114. break;
  115. case 0x18:
  116. model = "32 MB";
  117. break;
  118. case 0x10:
  119. model = "64 MB";
  120. break;
  121. case 0x00:
  122. model = "128 MB";
  123. break;
  124. default:
  125. model = "Reserved";
  126. break;
  127. }
  128. seq_printf(m, "memory bank %d\t: %s %s\n", i, model,
  129. gg2_memtypes[sdramen ? 1 : ((t>>1) & 3)]);
  130. }
  131. /* L2 cache */
  132. t = in_le32(gg2_pci_config_base+GG2_PCI_CC_CTRL);
  133. seq_printf(m, "board l2\t: %s %s (%s)\n",
  134. gg2_cachesizes[(t>>7) & 3],
  135. gg2_cachetypes[(t>>2) & 3],
  136. gg2_cachemodes[t & 3]);
  137. }
  138. of_node_put(root);
  139. }
  140. /*
  141. * Fixes for the National Semiconductor PC78308VUL SuperI/O
  142. *
  143. * Some versions of Open Firmware incorrectly initialize the IRQ settings
  144. * for keyboard and mouse
  145. */
  146. static inline void __init sio_write(u8 val, u8 index)
  147. {
  148. outb(index, 0x15c);
  149. outb(val, 0x15d);
  150. }
  151. static inline u8 __init sio_read(u8 index)
  152. {
  153. outb(index, 0x15c);
  154. return inb(0x15d);
  155. }
  156. static void __init sio_fixup_irq(const char *name, u8 device, u8 level,
  157. u8 type)
  158. {
  159. u8 level0, type0, active;
  160. /* select logical device */
  161. sio_write(device, 0x07);
  162. active = sio_read(0x30);
  163. level0 = sio_read(0x70);
  164. type0 = sio_read(0x71);
  165. if (level0 != level || type0 != type || !active) {
  166. printk(KERN_WARNING "sio: %s irq level %d, type %d, %sactive: "
  167. "remapping to level %d, type %d, active\n",
  168. name, level0, type0, !active ? "in" : "", level, type);
  169. sio_write(0x01, 0x30);
  170. sio_write(level, 0x70);
  171. sio_write(type, 0x71);
  172. }
  173. }
  174. static void __init sio_init(void)
  175. {
  176. struct device_node *root;
  177. const char *model;
  178. root = of_find_node_by_path("/");
  179. if (!root)
  180. return;
  181. model = of_get_property(root, "model", NULL);
  182. if (model && !strncmp(model, "IBM,LongTrail", 13)) {
  183. /* logical device 0 (KBC/Keyboard) */
  184. sio_fixup_irq("keyboard", 0, 1, 2);
  185. /* select logical device 1 (KBC/Mouse) */
  186. sio_fixup_irq("mouse", 1, 12, 2);
  187. }
  188. of_node_put(root);
  189. }
  190. static void __init pegasos_set_l2cr(void)
  191. {
  192. struct device_node *np;
  193. /* On Pegasos, enable the l2 cache if needed, as the OF forgets it */
  194. if (_chrp_type != _CHRP_Pegasos)
  195. return;
  196. /* Enable L2 cache if needed */
  197. np = of_find_node_by_type(NULL, "cpu");
  198. if (np != NULL) {
  199. const unsigned int *l2cr = of_get_property(np, "l2cr", NULL);
  200. if (l2cr == NULL) {
  201. printk ("Pegasos l2cr : no cpu l2cr property found\n");
  202. goto out;
  203. }
  204. if (!((*l2cr) & 0x80000000)) {
  205. printk ("Pegasos l2cr : L2 cache was not active, "
  206. "activating\n");
  207. _set_L2CR(0);
  208. _set_L2CR((*l2cr) | 0x80000000);
  209. }
  210. }
  211. out:
  212. of_node_put(np);
  213. }
  214. static void briq_restart(char *cmd)
  215. {
  216. local_irq_disable();
  217. if (briq_SPOR)
  218. out_be32(briq_SPOR, 0);
  219. for(;;);
  220. }
  221. /*
  222. * Per default, input/output-device points to the keyboard/screen
  223. * If no card is installed, the built-in serial port is used as a fallback.
  224. * But unfortunately, the firmware does not connect /chosen/{stdin,stdout}
  225. * the the built-in serial node. Instead, a /failsafe node is created.
  226. */
  227. static void chrp_init_early(void)
  228. {
  229. struct device_node *node;
  230. const char *property;
  231. if (strstr(cmd_line, "console="))
  232. return;
  233. /* find the boot console from /chosen/stdout */
  234. if (!of_chosen)
  235. return;
  236. node = of_find_node_by_path("/");
  237. if (!node)
  238. return;
  239. property = of_get_property(node, "model", NULL);
  240. if (!property)
  241. goto out_put;
  242. if (strcmp(property, "Pegasos2"))
  243. goto out_put;
  244. /* this is a Pegasos2 */
  245. property = of_get_property(of_chosen, "linux,stdout-path", NULL);
  246. if (!property)
  247. goto out_put;
  248. of_node_put(node);
  249. node = of_find_node_by_path(property);
  250. if (!node)
  251. return;
  252. property = of_get_property(node, "device_type", NULL);
  253. if (!property)
  254. goto out_put;
  255. if (strcmp(property, "serial"))
  256. goto out_put;
  257. /*
  258. * The 9pin connector is either /failsafe
  259. * or /pci@80000000/isa@C/serial@i2F8
  260. * The optional graphics card has also type 'serial' in VGA mode.
  261. */
  262. property = of_get_property(node, "name", NULL);
  263. if (!property)
  264. goto out_put;
  265. if (!strcmp(property, "failsafe") || !strcmp(property, "serial"))
  266. add_preferred_console("ttyS", 0, NULL);
  267. out_put:
  268. of_node_put(node);
  269. }
  270. void __init chrp_setup_arch(void)
  271. {
  272. struct device_node *root = of_find_node_by_path("/");
  273. const char *machine = NULL;
  274. /* init to some ~sane value until calibrate_delay() runs */
  275. loops_per_jiffy = 50000000/HZ;
  276. if (root)
  277. machine = of_get_property(root, "model", NULL);
  278. if (machine && strncmp(machine, "Pegasos", 7) == 0) {
  279. _chrp_type = _CHRP_Pegasos;
  280. } else if (machine && strncmp(machine, "IBM", 3) == 0) {
  281. _chrp_type = _CHRP_IBM;
  282. } else if (machine && strncmp(machine, "MOT", 3) == 0) {
  283. _chrp_type = _CHRP_Motorola;
  284. } else if (machine && strncmp(machine, "TotalImpact,BRIQ-1", 18) == 0) {
  285. _chrp_type = _CHRP_briq;
  286. /* Map the SPOR register on briq and change the restart hook */
  287. briq_SPOR = ioremap(0xff0000e8, 4);
  288. ppc_md.restart = briq_restart;
  289. } else {
  290. /* Let's assume it is an IBM chrp if all else fails */
  291. _chrp_type = _CHRP_IBM;
  292. }
  293. of_node_put(root);
  294. printk("chrp type = %x [%s]\n", _chrp_type, chrp_names[_chrp_type]);
  295. rtas_initialize();
  296. if (rtas_token("display-character") >= 0)
  297. ppc_md.progress = rtas_progress;
  298. /* use RTAS time-of-day routines if available */
  299. if (rtas_token("get-time-of-day") != RTAS_UNKNOWN_SERVICE) {
  300. ppc_md.get_boot_time = rtas_get_boot_time;
  301. ppc_md.get_rtc_time = rtas_get_rtc_time;
  302. ppc_md.set_rtc_time = rtas_set_rtc_time;
  303. }
  304. /* On pegasos, enable the L2 cache if not already done by OF */
  305. pegasos_set_l2cr();
  306. /* Lookup PCI host bridges */
  307. chrp_find_bridges();
  308. /*
  309. * Temporary fixes for PCI devices.
  310. * -- Geert
  311. */
  312. hydra_init(); /* Mac I/O */
  313. /*
  314. * Fix the Super I/O configuration
  315. */
  316. sio_init();
  317. pci_create_OF_bus_map();
  318. /*
  319. * Print the banner, then scroll down so boot progress
  320. * can be printed. -- Cort
  321. */
  322. if (ppc_md.progress) ppc_md.progress("Linux/PPC "UTS_RELEASE"\n", 0x0);
  323. }
  324. void
  325. chrp_event_scan(unsigned long unused)
  326. {
  327. unsigned char log[1024];
  328. int ret = 0;
  329. /* XXX: we should loop until the hardware says no more error logs -- Cort */
  330. rtas_call(rtas_token("event-scan"), 4, 1, &ret, 0xffffffff, 0,
  331. __pa(log), 1024);
  332. mod_timer(&__get_cpu_var(heartbeat_timer),
  333. jiffies + event_scan_interval);
  334. }
  335. static void chrp_8259_cascade(unsigned int irq, struct irq_desc *desc)
  336. {
  337. unsigned int cascade_irq = i8259_irq();
  338. if (cascade_irq != NO_IRQ)
  339. generic_handle_irq(cascade_irq);
  340. desc->chip->eoi(irq);
  341. }
  342. /*
  343. * Finds the open-pic node and sets up the mpic driver.
  344. */
  345. static void __init chrp_find_openpic(void)
  346. {
  347. struct device_node *np, *root;
  348. int len, i, j;
  349. int isu_size, idu_size;
  350. const unsigned int *iranges, *opprop = NULL;
  351. int oplen = 0;
  352. unsigned long opaddr;
  353. int na = 1;
  354. np = of_find_node_by_type(NULL, "open-pic");
  355. if (np == NULL)
  356. return;
  357. root = of_find_node_by_path("/");
  358. if (root) {
  359. opprop = of_get_property(root, "platform-open-pic", &oplen);
  360. na = of_n_addr_cells(root);
  361. }
  362. if (opprop && oplen >= na * sizeof(unsigned int)) {
  363. opaddr = opprop[na-1]; /* assume 32-bit */
  364. oplen /= na * sizeof(unsigned int);
  365. } else {
  366. struct resource r;
  367. if (of_address_to_resource(np, 0, &r)) {
  368. goto bail;
  369. }
  370. opaddr = r.start;
  371. oplen = 0;
  372. }
  373. printk(KERN_INFO "OpenPIC at %lx\n", opaddr);
  374. iranges = of_get_property(np, "interrupt-ranges", &len);
  375. if (iranges == NULL)
  376. len = 0; /* non-distributed mpic */
  377. else
  378. len /= 2 * sizeof(unsigned int);
  379. /*
  380. * The first pair of cells in interrupt-ranges refers to the
  381. * IDU; subsequent pairs refer to the ISUs.
  382. */
  383. if (oplen < len) {
  384. printk(KERN_ERR "Insufficient addresses for distributed"
  385. " OpenPIC (%d < %d)\n", oplen, len);
  386. len = oplen;
  387. }
  388. isu_size = 0;
  389. idu_size = 0;
  390. if (len > 0 && iranges[1] != 0) {
  391. printk(KERN_INFO "OpenPIC irqs %d..%d in IDU\n",
  392. iranges[0], iranges[0] + iranges[1] - 1);
  393. idu_size = iranges[1];
  394. }
  395. if (len > 1)
  396. isu_size = iranges[3];
  397. chrp_mpic = mpic_alloc(np, opaddr, MPIC_PRIMARY,
  398. isu_size, 0, " MPIC ");
  399. if (chrp_mpic == NULL) {
  400. printk(KERN_ERR "Failed to allocate MPIC structure\n");
  401. goto bail;
  402. }
  403. j = na - 1;
  404. for (i = 1; i < len; ++i) {
  405. iranges += 2;
  406. j += na;
  407. printk(KERN_INFO "OpenPIC irqs %d..%d in ISU at %x\n",
  408. iranges[0], iranges[0] + iranges[1] - 1,
  409. opprop[j]);
  410. mpic_assign_isu(chrp_mpic, i - 1, opprop[j]);
  411. }
  412. mpic_init(chrp_mpic);
  413. ppc_md.get_irq = mpic_get_irq;
  414. bail:
  415. of_node_put(root);
  416. of_node_put(np);
  417. }
  418. #if defined(CONFIG_VT) && defined(CONFIG_INPUT_ADBHID) && defined(CONFIG_XMON)
  419. static struct irqaction xmon_irqaction = {
  420. .handler = xmon_irq,
  421. .name = "XMON break",
  422. };
  423. #endif
  424. static void __init chrp_find_8259(void)
  425. {
  426. struct device_node *np, *pic = NULL;
  427. unsigned long chrp_int_ack = 0;
  428. unsigned int cascade_irq;
  429. /* Look for cascade */
  430. for_each_node_by_type(np, "interrupt-controller")
  431. if (of_device_is_compatible(np, "chrp,iic")) {
  432. pic = np;
  433. break;
  434. }
  435. /* Ok, 8259 wasn't found. We need to handle the case where
  436. * we have a pegasos that claims to be chrp but doesn't have
  437. * a proper interrupt tree
  438. */
  439. if (pic == NULL && chrp_mpic != NULL) {
  440. printk(KERN_ERR "i8259: Not found in device-tree"
  441. " assuming no legacy interrupts\n");
  442. return;
  443. }
  444. /* Look for intack. In a perfect world, we would look for it on
  445. * the ISA bus that holds the 8259 but heh... Works that way. If
  446. * we ever see a problem, we can try to re-use the pSeries code here.
  447. * Also, Pegasos-type platforms don't have a proper node to start
  448. * from anyway
  449. */
  450. for_each_node_by_name(np, "pci") {
  451. const unsigned int *addrp = of_get_property(np,
  452. "8259-interrupt-acknowledge", NULL);
  453. if (addrp == NULL)
  454. continue;
  455. chrp_int_ack = addrp[of_n_addr_cells(np)-1];
  456. break;
  457. }
  458. of_node_put(np);
  459. if (np == NULL)
  460. printk(KERN_WARNING "Cannot find PCI interrupt acknowledge"
  461. " address, polling\n");
  462. i8259_init(pic, chrp_int_ack);
  463. if (ppc_md.get_irq == NULL) {
  464. ppc_md.get_irq = i8259_irq;
  465. irq_set_default_host(i8259_get_host());
  466. }
  467. if (chrp_mpic != NULL) {
  468. cascade_irq = irq_of_parse_and_map(pic, 0);
  469. if (cascade_irq == NO_IRQ)
  470. printk(KERN_ERR "i8259: failed to map cascade irq\n");
  471. else
  472. set_irq_chained_handler(cascade_irq,
  473. chrp_8259_cascade);
  474. }
  475. }
  476. void __init chrp_init_IRQ(void)
  477. {
  478. #if defined(CONFIG_VT) && defined(CONFIG_INPUT_ADBHID) && defined(CONFIG_XMON)
  479. struct device_node *kbd;
  480. #endif
  481. chrp_find_openpic();
  482. chrp_find_8259();
  483. #ifdef CONFIG_SMP
  484. /* Pegasos has no MPIC, those ops would make it crash. It might be an
  485. * option to move setting them to after we probe the PIC though
  486. */
  487. if (chrp_mpic != NULL)
  488. smp_ops = &chrp_smp_ops;
  489. #endif /* CONFIG_SMP */
  490. if (_chrp_type == _CHRP_Pegasos)
  491. ppc_md.get_irq = i8259_irq;
  492. #if defined(CONFIG_VT) && defined(CONFIG_INPUT_ADBHID) && defined(CONFIG_XMON)
  493. /* see if there is a keyboard in the device tree
  494. with a parent of type "adb" */
  495. for_each_node_by_name(kbd, "keyboard")
  496. if (kbd->parent && kbd->parent->type
  497. && strcmp(kbd->parent->type, "adb") == 0)
  498. break;
  499. of_node_put(kbd);
  500. if (kbd)
  501. setup_irq(HYDRA_INT_ADB_NMI, &xmon_irqaction);
  502. #endif
  503. }
  504. void __init
  505. chrp_init2(void)
  506. {
  507. struct device_node *device;
  508. const unsigned int *p = NULL;
  509. #ifdef CONFIG_NVRAM
  510. chrp_nvram_init();
  511. #endif
  512. request_region(0x20,0x20,"pic1");
  513. request_region(0xa0,0x20,"pic2");
  514. request_region(0x00,0x20,"dma1");
  515. request_region(0x40,0x20,"timer");
  516. request_region(0x80,0x10,"dma page reg");
  517. request_region(0xc0,0x20,"dma2");
  518. /* Get the event scan rate for the rtas so we know how
  519. * often it expects a heartbeat. -- Cort
  520. */
  521. device = of_find_node_by_name(NULL, "rtas");
  522. if (device)
  523. p = of_get_property(device, "rtas-event-scan-rate", NULL);
  524. if (p && *p) {
  525. /*
  526. * Arrange to call chrp_event_scan at least *p times
  527. * per minute. We use 59 rather than 60 here so that
  528. * the rate will be slightly higher than the minimum.
  529. * This all assumes we don't do hotplug CPU on any
  530. * machine that needs the event scans done.
  531. */
  532. unsigned long interval, offset;
  533. int cpu, ncpus;
  534. struct timer_list *timer;
  535. interval = HZ * 59 / *p;
  536. offset = HZ;
  537. ncpus = num_online_cpus();
  538. event_scan_interval = ncpus * interval;
  539. for (cpu = 0; cpu < ncpus; ++cpu) {
  540. timer = &per_cpu(heartbeat_timer, cpu);
  541. setup_timer(timer, chrp_event_scan, 0);
  542. timer->expires = jiffies + offset;
  543. add_timer_on(timer, cpu);
  544. offset += interval;
  545. }
  546. printk("RTAS Event Scan Rate: %u (%lu jiffies)\n",
  547. *p, interval);
  548. }
  549. of_node_put(device);
  550. if (ppc_md.progress)
  551. ppc_md.progress(" Have fun! ", 0x7777);
  552. }
  553. static int __init chrp_probe(void)
  554. {
  555. char *dtype = of_get_flat_dt_prop(of_get_flat_dt_root(),
  556. "device_type", NULL);
  557. if (dtype == NULL)
  558. return 0;
  559. if (strcmp(dtype, "chrp"))
  560. return 0;
  561. ISA_DMA_THRESHOLD = ~0L;
  562. DMA_MODE_READ = 0x44;
  563. DMA_MODE_WRITE = 0x48;
  564. return 1;
  565. }
  566. define_machine(chrp) {
  567. .name = "CHRP",
  568. .probe = chrp_probe,
  569. .setup_arch = chrp_setup_arch,
  570. .init = chrp_init2,
  571. .init_early = chrp_init_early,
  572. .show_cpuinfo = chrp_show_cpuinfo,
  573. .init_IRQ = chrp_init_IRQ,
  574. .restart = rtas_restart,
  575. .power_off = rtas_power_off,
  576. .halt = rtas_halt,
  577. .time_init = chrp_time_init,
  578. .set_rtc_time = chrp_set_rtc_time,
  579. .get_rtc_time = chrp_get_rtc_time,
  580. .calibrate_decr = generic_calibrate_decr,
  581. .phys_mem_access_prot = pci_phys_mem_access_prot,
  582. };