Function report |
Source Code:arch\x86\kernel\cpu\mtrr\mtrr.c |
Create Date:2022-07-28 08:05:01 |
Last Modify:2022-05-18 17:35:08 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Returns non-zero if we have the write-combining memory type
Proto:static int have_wrcomb(void)
Type:int
Parameter:Nothing
94 | dev = pci_get_class(PCI_CLASS_BRIDGE_HOST << 8, NULL) |
95 | If (dev != NULL) Then |
101 | If vendor == PCI_VENDOR_ID_SERVERWORKS && device == PCI_DEVICE_ID_SERVERWORKS_LE && revision <= 5 Then |
104 | pr_info("Serverworks LE rev < 6 detected. Write-combining disabled.\n") |
105 | pci_dev_put(dev) |
106 | Return 0 |
112 | If vendor == PCI_VENDOR_ID_INTEL && device == PCI_DEVICE_ID_INTEL_82451NX Then |
114 | pr_info("Intel 450NX MMC detected. Write-combining disabled.\n") |
115 | pci_dev_put(dev) |
116 | Return 0 |
118 | pci_dev_put(dev) |
120 | Return If have_wrcomb Then have_wrcomb() Else 0 |
Name | Describe |
---|---|
mtrr_add_page | mtrr_add_page - Add a memory type region*@base: Physical base address of region in pages (in units of 4 kB!)*@size: Physical size of region in pages (4 kB)*@type: Type of MTRR desired*@increment: If this is true do usage counting on the region* Memory |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |