Changeset fb4c8a9 in rtems-libbsd


Ignore:
Timestamp:
May 23, 2012, 7:53:12 PM (8 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
4.11, a8f29d695e152575479ad1a97fa354f661bebd4d, freebsd-9.3, d892051f37c2c4ad7f345f6a817ea3d38e56a431
Children:
b9fa3c9
Parents:
ae53d9e
Message:

Added pcib for Nics.

Files:
5 added
7 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rae53d9e rfb4c8a9  
    5757C_FILES += rtemsbsd/src/rtems-bsd-copyinout.c
    5858C_FILES += rtemsbsd/src/rtems-bsd-descrip.c
     59C_FILES += rtemsbsd/src/rtems-bsd-conf.c
     60C_FILES += rtemsbsd/src/rtems-bsd-subr_param.c
    5961C_FILES += freebsd/kern/subr_eventhandler.c
    6062C_FILES += freebsd/kern/kern_subr.c
     
    366368C_FILES += freebsd/kern/subr_sbuf.c
    367369C_FILES += freebsd/kern/subr_rman.c
     370C_FILES += freebsd/kern/subr_module.c
    368371C_FILES += freebsd/libkern/inet_ntoa.c
    369372C_FILES += freebsd/kern/kern_prot.c
     
    372375C_FILES += freebsd/netinet/tcp_hostcache.c
    373376C_FILES += freebsd/dev/pci/pci.c
     377C_FILES += freebsd/dev/pci/pci_user.c
    374378C_FILES += freebsd/kern/uipc_accf.c
    375379C_FILES += freebsd/kern/kern_ntptime.c
  • freebsd-to-rtems.py

    rae53d9e rfb4c8a9  
    552552                'src/rtems-bsd-copyinout.c',
    553553                'src/rtems-bsd-descrip.c',
     554                'src/rtems-bsd-conf.c',
     555                'src/rtems-bsd-subr_param.c',
    554556        ]
    555557)
     
    12031205                'i386/include/specialreg.h',
    12041206                'i386/include/md_var.h',
     1207                'i386/include/intr_machdep.h',
    12051208        ]
    12061209)
     
    12161219                'kern/subr_sbuf.c',
    12171220                'kern/subr_rman.c',
     1221                'kern/subr_module.c',
    12181222                'libkern/inet_ntoa.c',
    12191223                'kern/kern_prot.c',
     
    12221226                'netinet/tcp_hostcache.c',
    12231227                'dev/pci/pci.c',
     1228                'dev/pci/pci_user.c',
    12241229                'kern/uipc_accf.c',
    12251230                'kern/kern_ntptime.c',
  • freebsd/dev/pci/pci.c

    rae53d9e rfb4c8a9  
    5858#include <freebsd/machine/stdarg.h>
    5959
    60 #ifndef __rtems__
    6160#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__)
    6261#include <freebsd/machine/intr_machdep.h>
    6362#endif
    64 #endif /* __rtems__ */
    6563
    6664#include <freebsd/sys/pciio.h>
    6765#include <freebsd/dev/pci/pcireg.h>
    6866#include <freebsd/dev/pci/pcivar.h>
    69 #ifndef __rtems__
    7067#include <freebsd/dev/pci/pci_private.h>
    7168
    7269#include <freebsd/dev/usb/controller/ehcireg.h>
    7370#include <freebsd/dev/usb/controller/ohcireg.h>
     71#ifndef __rtems__
    7472#include <freebsd/dev/usb/controller/uhcireg.h>
     73#endif /* __rtems__ */
    7574
    7675#include <freebsd/local/pcib_if.h>
     
    8382#define ACPI_PWR_FOR_SLEEP(x, y, z)
    8483#endif
    85 #endif /* __rtems__ */
    86 
    87 #ifndef __rtems__
     84
    8885static pci_addr_t       pci_mapbase(uint64_t mapreg);
    8986static const char       *pci_maptype(uint64_t mapreg);
     
    333330}
    334331
     332#ifndef __rtems__
    335333/* Find a device_t by vendor/device ID */
    336334
     
    349347        return (NULL);
    350348}
     349#endif /* __rtems__ */
    351350
    352351static int
     
    16151614        }
    16161615}
    1617 #endif /* __rtems__ */
    16181616
    16191617int
     
    16511649}
    16521650
    1653 #ifndef __rtems__
    16541651/*
    16551652 * Support for MSI message signalled interrupts.
     
    26262623        /* Let the user override the IRQ with a tunable. */
    26272624        irq = PCI_INVALID_IRQ;
     2625#ifndef __rtems__
    26282626        snprintf(tunable_name, sizeof(tunable_name),
    26292627            "hw.pci%d.%d.%d.INT%c.irq",
     
    26312629        if (TUNABLE_INT_FETCH(tunable_name, &irq) && (irq >= 255 || irq <= 0))
    26322630                irq = PCI_INVALID_IRQ;
     2631#endif /* __rtems__ */
    26332632
    26342633        /*
     
    26972696}
    26982697
     2698#ifndef __rtems__
    26992699/* Perform early UHCI takeover from SMM. */
    27002700static void
     
    27202720        }
    27212721}
     2722#endif /* __rtems__ */
    27222723
    27232724/* Perform early EHCI takeover from SMM. */
     
    28272828                else if (pci_get_progif(dev) == PCIP_SERIALBUS_USB_OHCI)
    28282829                        ohci_early_takeover(dev);
     2830#ifndef __rtems__
    28292831                else if (pci_get_progif(dev) == PCIP_SERIALBUS_USB_UHCI)
    28302832                        uhci_early_takeover(dev);
     2833#endif /* __rtems__ */
    28312834        }
    28322835}
     
    41154118                pci_set_powerstate(dev, PCI_POWERSTATE_D3);
    41164119}
    4117 #endif /* __rtems__ */
  • freebsd/dev/pci/pcivar.h

    rae53d9e rfb4c8a9  
    447447device_t pci_find_bsf(uint8_t, uint8_t, uint8_t);
    448448device_t pci_find_dbsf(uint32_t, uint8_t, uint8_t, uint8_t);
     449#ifndef __rtems__
    449450device_t pci_find_device(uint16_t, uint16_t);
     451#endif /* __rtems__ */
    450452
    451453/* Can be used by drivers to manage the MSI-X table. */
  • freebsd/kern/kern_prot.c

    rae53d9e rfb4c8a9  
    12871287}
    12881288
    1289 #ifndef __rtems__
    12901289/*
    12911290 * Test the active securelevel against a given level.  securelevel_gt()
     
    13141313        return (cr->cr_prison->pr_securelevel >= level ? EPERM : 0);
    13151314}
    1316 
    1317 #endif /* __rtems__ */
    13181315
    13191316/*
  • freebsd/kern/subr_bus.c

    rae53d9e rfb4c8a9  
    28622862}
    28632863
    2864 #ifndef __rtems__
    28652864/*======================================*/
    28662865/*
     
    31943193        }
    31953194}
    3196 #endif /* __rtems__ */
    31973195
    31983196device_t
     
    35193517}
    35203518
    3521 #ifndef __rtems__
    35223519/**
    35233520 * @brief Helper function for implementing BUS_ALLOC_RESOURCE().
     
    35873584        return (EINVAL);
    35883585}
    3589 #endif /* __rtems__ */
    35903586
    35913587/**
     
    36573653}
    36583654
    3659 #ifndef __rtems__
    36603655/**
    36613656 * @brief Helper function for implementing BUS_GET_RESOURCE().
     
    37743769            start, end, count, flags));
    37753770}
    3776 #endif /* __rtems__ */
    37773771
    37783772/**
  • libbsd.txt

    rae53d9e rfb4c8a9  
    555555are only used by the Nic test are the most suspect.
    556556
     557[listing]
     558----
    557559rtems-libbsd File:      rtems-bsd-assert.c
    558560FreeBSD File:           rtems-bsd-config.h redefines BSD_ASSERT.
     
    738740Description:           
    739741Status:                 USB, Nic
    740 
     742----
     743
     744== Notes by File ==
     745
     746altq_subr.c - Arbitrary choices were made in this file that RTEMS would
     747not support tsc frequency change.  Additionally, the clock frequency
     748for machclk_freq is always measured for RTEMS.
     749
     750conf.h - In order to add make_dev and destroy_dev, variables in the cdev
     751structure that were not being used were conditionally compiled out. The
     752capability of supporting children did not appear to be needed and was
     753not implemented in the rtems version of these routines.
     754 
    741755== NICs Status ==
    742756
     757[listing]
     758----
    743759Driver                  Symbol                          Status
    744760======                  ======                          ======
     
    749765Broadcom BCM4401        _bsd_bfe_pcimodule_sys_init     Links
    750766Broadcom 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)
     767E1000 IGB               _bsd_igb_pcimodule_sys_init     Links
     768E1000 EM                _bsd_em_pcimodule_sys_init      Links
     769----
    753770
    754771
    755772Symbols (A)
    756          pci_find_dbsf
    757773         pci_get_vpd_ident
    758 Symbols (B)
    759         make_dev()
    760         destroy_dev()
Note: See TracChangeset for help on using the changeset viewer.