blob: 762ff6f98e6b603b0b6fb864c85f9bff46440efe [file] [log] [blame]
Nico Huber6a996dc2018-06-17 16:30:33 +02001--
2-- Copyright (C) 2018 Nico Huber <nico.h@gmx.de>
3--
4-- This program is free software; you can redistribute it and/or modify
5-- it under the terms of the GNU General Public License as published by
6-- the Free Software Foundation; either version 2 of the License, or
7-- (at your option) any later version.
8--
9-- This program is distributed in the hope that it will be useful,
10-- but WITHOUT ANY WARRANTY; without even the implied warranty of
11-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-- GNU General Public License for more details.
13--
14
15package body HW.GFX.GMA.Config
16is
17
18 procedure Detect_CPU (Device : Word16) is
19 begin
20 for CPU in Gen_CPU_Type loop
21 for CPU_Var in Gen_CPU_Variant loop
22 if Is_GPU (Device, CPU, CPU_Var) then
23 Config.CPU := CPU;
24 Config.CPU_Var := CPU_Var;
25 exit;
26 end if;
27 end loop;
28 end loop;
29 end Detect_CPU;
30
31end HW.GFX.GMA.Config;