Changeset fb4c8a9 in rtems-libbsd
- Timestamp:
- 05/23/12 19:53:12 (11 years ago)
- Branches:
- 4.11, 5, 5-freebsd-12, 6-freebsd-12, freebsd-9.3, master
- Children:
- b9fa3c9
- Parents:
- ae53d9e
- Files:
-
- 5 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rae53d9e rfb4c8a9 57 57 C_FILES += rtemsbsd/src/rtems-bsd-copyinout.c 58 58 C_FILES += rtemsbsd/src/rtems-bsd-descrip.c 59 C_FILES += rtemsbsd/src/rtems-bsd-conf.c 60 C_FILES += rtemsbsd/src/rtems-bsd-subr_param.c 59 61 C_FILES += freebsd/kern/subr_eventhandler.c 60 62 C_FILES += freebsd/kern/kern_subr.c … … 366 368 C_FILES += freebsd/kern/subr_sbuf.c 367 369 C_FILES += freebsd/kern/subr_rman.c 370 C_FILES += freebsd/kern/subr_module.c 368 371 C_FILES += freebsd/libkern/inet_ntoa.c 369 372 C_FILES += freebsd/kern/kern_prot.c … … 372 375 C_FILES += freebsd/netinet/tcp_hostcache.c 373 376 C_FILES += freebsd/dev/pci/pci.c 377 C_FILES += freebsd/dev/pci/pci_user.c 374 378 C_FILES += freebsd/kern/uipc_accf.c 375 379 C_FILES += freebsd/kern/kern_ntptime.c -
freebsd-to-rtems.py
rae53d9e rfb4c8a9 552 552 'src/rtems-bsd-copyinout.c', 553 553 'src/rtems-bsd-descrip.c', 554 'src/rtems-bsd-conf.c', 555 'src/rtems-bsd-subr_param.c', 554 556 ] 555 557 ) … … 1203 1205 'i386/include/specialreg.h', 1204 1206 'i386/include/md_var.h', 1207 'i386/include/intr_machdep.h', 1205 1208 ] 1206 1209 ) … … 1216 1219 'kern/subr_sbuf.c', 1217 1220 'kern/subr_rman.c', 1221 'kern/subr_module.c', 1218 1222 'libkern/inet_ntoa.c', 1219 1223 'kern/kern_prot.c', … … 1222 1226 'netinet/tcp_hostcache.c', 1223 1227 'dev/pci/pci.c', 1228 'dev/pci/pci_user.c', 1224 1229 'kern/uipc_accf.c', 1225 1230 'kern/kern_ntptime.c', -
freebsd/dev/pci/pci.c
rae53d9e rfb4c8a9 58 58 #include <freebsd/machine/stdarg.h> 59 59 60 #ifndef __rtems__61 60 #if defined(__i386__) || defined(__amd64__) || defined(__powerpc__) 62 61 #include <freebsd/machine/intr_machdep.h> 63 62 #endif 64 #endif /* __rtems__ */65 63 66 64 #include <freebsd/sys/pciio.h> 67 65 #include <freebsd/dev/pci/pcireg.h> 68 66 #include <freebsd/dev/pci/pcivar.h> 69 #ifndef __rtems__70 67 #include <freebsd/dev/pci/pci_private.h> 71 68 72 69 #include <freebsd/dev/usb/controller/ehcireg.h> 73 70 #include <freebsd/dev/usb/controller/ohcireg.h> 71 #ifndef __rtems__ 74 72 #include <freebsd/dev/usb/controller/uhcireg.h> 73 #endif /* __rtems__ */ 75 74 76 75 #include <freebsd/local/pcib_if.h> … … 83 82 #define ACPI_PWR_FOR_SLEEP(x, y, z) 84 83 #endif 85 #endif /* __rtems__ */ 86 87 #ifndef __rtems__ 84 88 85 static pci_addr_t pci_mapbase(uint64_t mapreg); 89 86 static const char *pci_maptype(uint64_t mapreg); … … 333 330 } 334 331 332 #ifndef __rtems__ 335 333 /* Find a device_t by vendor/device ID */ 336 334 … … 349 347 return (NULL); 350 348 } 349 #endif /* __rtems__ */ 351 350 352 351 static int … … 1615 1614 } 1616 1615 } 1617 #endif /* __rtems__ */1618 1616 1619 1617 int … … 1651 1649 } 1652 1650 1653 #ifndef __rtems__1654 1651 /* 1655 1652 * Support for MSI message signalled interrupts. … … 2626 2623 /* Let the user override the IRQ with a tunable. */ 2627 2624 irq = PCI_INVALID_IRQ; 2625 #ifndef __rtems__ 2628 2626 snprintf(tunable_name, sizeof(tunable_name), 2629 2627 "hw.pci%d.%d.%d.INT%c.irq", … … 2631 2629 if (TUNABLE_INT_FETCH(tunable_name, &irq) && (irq >= 255 || irq <= 0)) 2632 2630 irq = PCI_INVALID_IRQ; 2631 #endif /* __rtems__ */ 2633 2632 2634 2633 /* … … 2697 2696 } 2698 2697 2698 #ifndef __rtems__ 2699 2699 /* Perform early UHCI takeover from SMM. */ 2700 2700 static void … … 2720 2720 } 2721 2721 } 2722 #endif /* __rtems__ */ 2722 2723 2723 2724 /* Perform early EHCI takeover from SMM. */ … … 2827 2828 else if (pci_get_progif(dev) == PCIP_SERIALBUS_USB_OHCI) 2828 2829 ohci_early_takeover(dev); 2830 #ifndef __rtems__ 2829 2831 else if (pci_get_progif(dev) == PCIP_SERIALBUS_USB_UHCI) 2830 2832 uhci_early_takeover(dev); 2833 #endif /* __rtems__ */ 2831 2834 } 2832 2835 } … … 4115 4118 pci_set_powerstate(dev, PCI_POWERSTATE_D3); 4116 4119 } 4117 #endif /* __rtems__ */ -
freebsd/dev/pci/pcivar.h
rae53d9e rfb4c8a9 447 447 device_t pci_find_bsf(uint8_t, uint8_t, uint8_t); 448 448 device_t pci_find_dbsf(uint32_t, uint8_t, uint8_t, uint8_t); 449 #ifndef __rtems__ 449 450 device_t pci_find_device(uint16_t, uint16_t); 451 #endif /* __rtems__ */ 450 452 451 453 /* Can be used by drivers to manage the MSI-X table. */ -
freebsd/kern/kern_prot.c
rae53d9e rfb4c8a9 1287 1287 } 1288 1288 1289 #ifndef __rtems__1290 1289 /* 1291 1290 * Test the active securelevel against a given level. securelevel_gt() … … 1314 1313 return (cr->cr_prison->pr_securelevel >= level ? EPERM : 0); 1315 1314 } 1316 1317 #endif /* __rtems__ */1318 1315 1319 1316 /* -
freebsd/kern/subr_bus.c
rae53d9e rfb4c8a9 2862 2862 } 2863 2863 2864 #ifndef __rtems__2865 2864 /*======================================*/ 2866 2865 /* … … 3194 3193 } 3195 3194 } 3196 #endif /* __rtems__ */3197 3195 3198 3196 device_t … … 3519 3517 } 3520 3518 3521 #ifndef __rtems__3522 3519 /** 3523 3520 * @brief Helper function for implementing BUS_ALLOC_RESOURCE(). … … 3587 3584 return (EINVAL); 3588 3585 } 3589 #endif /* __rtems__ */3590 3586 3591 3587 /** … … 3657 3653 } 3658 3654 3659 #ifndef __rtems__3660 3655 /** 3661 3656 * @brief Helper function for implementing BUS_GET_RESOURCE(). … … 3774 3769 start, end, count, flags)); 3775 3770 } 3776 #endif /* __rtems__ */3777 3771 3778 3772 /** -
libbsd.txt
rae53d9e rfb4c8a9 555 555 are only used by the Nic test are the most suspect. 556 556 557 [listing] 558 ---- 557 559 rtems-libbsd File: rtems-bsd-assert.c 558 560 FreeBSD File: rtems-bsd-config.h redefines BSD_ASSERT. … … 738 740 Description: 739 741 Status: USB, Nic 740 742 ---- 743 744 == Notes by File == 745 746 altq_subr.c - Arbitrary choices were made in this file that RTEMS would 747 not support tsc frequency change. Additionally, the clock frequency 748 for machclk_freq is always measured for RTEMS. 749 750 conf.h - In order to add make_dev and destroy_dev, variables in the cdev 751 structure that were not being used were conditionally compiled out. The 752 capability of supporting children did not appear to be needed and was 753 not implemented in the rtems version of these routines. 754 741 755 == NICs Status == 742 756 757 [listing] 758 ---- 743 759 Driver Symbol Status 744 760 ====== ====== ====== … … 749 765 Broadcom BCM4401 _bsd_bfe_pcimodule_sys_init Links 750 766 Broadcom BCM570x _bsd_bge_pcimodule_sys_init Needs Symbols (A) 751 E1000 xxx _bsd_igb_pcimodule_sys_init Needs Symbols (B) 752 E1000 XXX _bsd_em_pcimodule_sys_init Needs Symbols (B) 767 E1000 IGB _bsd_igb_pcimodule_sys_init Links 768 E1000 EM _bsd_em_pcimodule_sys_init Links 769 ---- 753 770 754 771 755 772 Symbols (A) 756 pci_find_dbsf757 773 pci_get_vpd_ident 758 Symbols (B)759 make_dev()760 destroy_dev()
Note: See TracChangeset
for help on using the changeset viewer.