Function report |
Source Code:arch\x86\kernel\cpu\mtrr\cyrix.c |
Create Date:2022-07-28 08:06:56 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cyrix_get_arr
Proto:static void cyrix_get_arr(unsigned int reg, unsigned long *base, unsigned long *size, mtrr_type *type)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned int | reg | |
unsigned long * | base | |
unsigned long * | size | |
mtrr_type * | type |
20 | arr = CX86_ARR_BASE + (reg << 1) + reg |
22 | local_irq_save(flags) |
24 | ccr3 = NSC/Cyrix CPU indexed register access. Must be inlined instead of* macros to ensure correct access ordering* Access order is always 0x22 (=offset), 0x23 (=value) |
29 | rcr = NSC/Cyrix CPU indexed register access. Must be inlined instead of* macros to ensure correct access ordering* Access order is always 0x22 (=offset), 0x23 (=value) |
34 | shift = ) & 0x0f |
43 | Else size = 0 |
47 | If reg < 7 Then |
49 | Case rcr == 1 |
51 | Break |
52 | Case rcr == 8 |
53 | type = MTRR_TYPE_WRBACK |
54 | Break |
55 | Case rcr == 9 |
56 | type = MTRR_TYPE_WRCOMB |
57 | Break |
58 | Case rcr == 24 |
59 | Default |
60 | type = #define MTRR_TYPE_ 3 |
61 | Break |
63 | Else |
65 | Case rcr == 0 |
67 | Break |
68 | Case rcr == 8 |
69 | type = MTRR_TYPE_WRCOMB |
70 | Break |
71 | Case rcr == 9 |
72 | type = MTRR_TYPE_WRBACK |
73 | Break |
74 | Case rcr == 25 |
75 | Default |
76 | type = #define MTRR_TYPE_ 3 |
77 | Break |
Name | Describe |
---|---|
cyrix_get_free_region | yrix_get_free_region - get a free ARR.*@base: the starting (base) address of the region.*@size: the size (in bytes) of the region.* Returns: the index of the region on success, else -1 on error. |
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 |