--- /dev/null
+%%
+% HISTORY:
+%
+% Daniel Sykora (26.12.2004)
+%
+% Pavel Tvrdik (17.12.2004)
+%
+% Michal Valenta (7.5. 2008)
+
+%preamble declarations
+
+%%%% 7.5.2009
+%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=%
+\setlength\hoffset{-10pt}
+\setlength\voffset{-\baselineskip}
+\normalsize
+\setlength\textwidth{40em}
+%
+\setlength\topmargin{0pt}
+\setlength\headheight{\baselineskip}
+\setlength\headsep{2\baselineskip}
+\setlength\topskip{\baselineskip}
+\setlength\textheight{45\baselineskip}
+\addtolength\textheight{\topskip} %calc.sty avoided
+\setlength\footskip{3\baselineskip}
+%
+\if@twoside
+ \typeout{Two side layout redefined.}
+ %
+ \setlength\evensidemargin{0pt}
+ \setlength\oddsidemargin{37.5pt}
+ \setlength\marginparsep{0pt}
+ \setlength\marginparwidth{0pt}
+\else
+ \typeout{One side layout redefined.}
+ %
+ \setlength\evensidemargin{0pt}
+ \setlength\oddsidemargin{19pt}
+ \setlength\marginparsep{0pt}
+ \setlength\marginparwidth{0pt}
+\fi
+%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=%
+
+\setcounter{secnumdepth}{3}
+\setcounter{tocdepth}{3}
+
+\def\ifndef#1{\expandafter\ifx\csname#1\endcsname\relax} % check whether macro is defined
+
+
+
+
+\newcommand\coverpagestarts
+{\cleardoublepage
+\pagenumbering{roman}\thispagestyle{empty}\setcounter{page}{3}
+\begin{center}
+\large\rmfamily
+\University\\
+\Faculty\\
+\Department\\
+\vglue 10mm
+\includegraphics[width=50mm]{img/LogoCVUT}
+\vglue 30mm
+{\large \TypeOfWork}\\
+\bigskip
+{\Large\bf \WorkTitle}\\
+\bigskip
+\bigskip
+{\Large\it \FirstandFamilyName}\\
+\vfill
+\item[\labelSupervisor:]\ \Supervisor\\
+\vglue 15mm
+{\labelStudProgram: \StudProgram}\\
+\bigskip
+{\labelStudBranch: \StudBranch}\\
+\bigskip
+\today
+\end{center}
+\newpage
+}
+
+\newcommand\mainbodystarts{
+\cleardoublepage
+\pagestyle{headings}\pagenumbering{arabic}\setcounter{page}{1}
+}
+
+%A list of user hyphenations.
+\input{hyphen.tex}
+
+%Chapters start at odd pages if you include:
+%\newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
+% into /usr/lib/texmf/tex/latex/latex/book.cls
+
+%your specific macros
+
+\newcommand{\bcen}{\begin{center}}
+\newcommand{\ecen}{\end{center}}
+\newcommand{\blem}{\begin{lemma}\sl}
+\newcommand{\elem}{\end{lemma}\rm}
+\newcommand{\bnote}{\begin{note}\rm}
+\newcommand{\enote}{\end{note}}
+\newcommand{\bcor}{\begin{corollary}\sl}
+\newcommand{\ecor}{\end{corollary}\rm}
+\newcommand{\bdefi}{\begin{definition}\rm}
+\newcommand{\edefi}{\end{definition}}
+\newcommand{\btheo}{\begin{theorem}\sl}
+\newcommand{\etheo}{\end{theorem}\rm}
+\newcommand{\bprop}{\begin{proposition}\sl}
+\newcommand{\eprop}{\end{proposition}\rm}
+\newcommand{\bexam}{\begin{example}\rm}
+\newcommand{\eexam}{\end{example}}
+%
+\newcommand{\bfig}{\begin{figure}\begin{center}}
+\newcommand{\efig}{\end{center}\end{figure}}
+\newcommand{\btab}{\begin{table}\begin{center}}
+\newcommand{\etab}{\end{center}\end{table}}
+\newcommand{\benum}{\begin{enumerate}}
+\newcommand{\eenum}{\end{enumerate}}
+\newcommand{\bitem}{\begin{itemize}}
+\newcommand{\eitem}{\end{itemize}}
+\newcommand{\bflushr}{\begin{flushright}}
+\newcommand{\eflushr}{\end{flushright}}
+% ceske uvozovky
+\chardef\clqq=18 \sfcode18=0
+\chardef\crqq=16 \sfcode16=0
+\def\uv#1{\clqq#1\crqq}
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\newcommand{\acknowledgements}{
+\cleardoublepage
+\vspace*{\fill}
+\noindent
+{\huge \textbf{%
+\iflanguage{czech}{Poděkování}{Aknowledgements}%
+}}
+\vspace{3ex}\par
+}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\newcommand{\declaration}[1]{
+\cleardoublepage
+\vspace*{\fill}
+\noindent
+{\huge \textbf{%
+\iflanguage{czech}{Prohlášení}{Declaration}%
+}}
+\vspace{3ex}\par
+\noindent
+\iflanguage{czech}{%
+Prohlašuji, že jsem práci vypracoval samostatně a použil jsem pouze podklady uvedené v~přiloženém seznamu.\\
+Nemám závažný důvod proti užití tohoto školního díla ve smyslu \S 60 Zákona č.~121/2000 Sb., o právu autorském, o právech souvisejících s právem autorským a o změně některých zákonů (autorský zákon).%
+}{%
+\noindent
+I hereby declare that I have completed this thesis independently and that I have listed all the literature and publications used.\\
+I have no objection to usage of this work in compliance with the act \S 60 Zákon č.~121/2000Sb. (copyright law), and with the rights connected with the copyright act including the changes in the act.%
+}
+\\[15mm]
+#1 \hfill \hbox to 70mm{\tiny\dotfill}
+}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\newcommand{\abstractpage}{
+\cleardoublepage
+\noindent
+%{\Huge \textbf{Abstract}}
+%\vspace{8ex}
+\chapter*{Abstract}
+}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% zada kapitolu s Literaturou do obsahu
+\def\@openbib@code{\addcontentsline{toc}{chapter}{\bibname}}
--- /dev/null
+\documentclass[11pt,twoside,a4paper]{book} %two-page printing
+\usepackage[czech, english]{babel}
+%\usepackage{czech}
+%\usepackage[T1]{fontenc} % pouzije EC fonty
+\usepackage[utf8]{inputenc}
+\usepackage{graphicx}
+\usepackage{indentfirst} %1. odstavec jako v cestine.
+
+\usepackage{k336_thesis_macros_new} % specialni makra pro formatovani DP a BP
+ % muzete si vytvorit i sva vlastni v souboru k336_thesis_macros.sty
+ % najdete radu jednoduchych definic, ktere zde ani nejsou pouzity
+ % napriklad:
+ % \newcommand{\bfig}{\begin{figure}\begin{center}}
+ % \newcommand{\efig}{\end{center}\end{figure}}
+ % umoznuje pouzit prikaz \bfig namisto \begin{figure}\begin{center} atd.
+
+\newcommand{\ibox}[1]{ \begin{center} \fbox{\parbox{12cm}{ #1 }} \end{center}}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Zvolte jednu z moznosti
+% Choose one of the following options
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\newcommand\TypeOfWork{Diplomová práce} \typeout{Diplomova prace}
+% \newcommand\TypeOfWork{Master's Thesis} \typeout{Master's Thesis}
+% \newcommand\TypeOfWork{Bakalářská práce} \typeout{Bakalarska prace}
+% \newcommand\TypeOfWork{Bachelor's Project} \typeout{Bachelor's Project}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Zvolte jednu z moznosti
+% Choose one of the following options
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% nabidky jsou z: http://www.fel.cvut.cz/cz/education/bk/prehled.html
+
+%\newcommand\StudProgram{Elektrotechnika a informatika, dobíhající, Bakalářský}
+%\newcommand\StudProgram{Elektrotechnika a informatika, dobíhající, Magisterský}
+% \newcommand\StudProgram{Elektrotechnika a informatika, strukturovaný, Bakalářský}
+% \newcommand\StudProgram{Elektrotechnika a informatika, strukturovaný, Navazující magisterský}
+\newcommand\StudProgram{Otevřená informatika, strukturovaný, Navazující magisterský}
+
+% \newcommand\StudProgram{Softwarové technologie a management, Bakalářský}
+% English study:
+% \newcommand\StudProgram{Electrical Engineering and Information Technology} % bachelor programe
+% \newcommand\StudProgram{Electrical Engineering and Information Technology} %master program
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Zvolte jednu z moznosti
+% Choose one of the following options
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% nabidky jsou z: http://www.fel.cvut.cz/cz/education/bk/prehled.html
+
+%\newcommand\StudBranch{Výpočetní technika} % pro program EaI bak. (dobihajici i strukt.)
+%\newcommand\StudBranch{Výpočetní technika} % pro prgoram EaI mag. (dobihajici i strukt.)
+%\newcommand\StudBranch{Softwarové inženýrství} %pro STM
+%\newcommand\StudBranch{Web a multimedia} % pro STM
+%\newcommand\StudBranch{Computer Engineering} % bachelor programe
+%\newcommand\StudBranch{Computer Science and Engineering} % master programe
+\newcommand\StudBranch{Počítačové inženýrství}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Vyplnte nazev prace, autora a vedouciho
+% Set up Work Title, Author and Supervisor
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\newcommand\WorkTitle{Prostředí pro výuku vývoje PCI ovladačů do OS GNU/Linux}
+\newcommand\FirstandFamilyName{Rostislav Lisový}
+\newcommand\Supervisor{Ing. Pavel Píša, Ph.D. (fixme)}
+
+
+% Pouzijete-li pdflatex, tak je prijemne, kdyz bude mit vase prace
+% funkcni odkazy i v pdf formatu
+ %\usepackage[
+ %pdftitle={\WorkTitle},
+ %pdfauthor={\FirstandFamilyName},
+ %bookmarks=true,
+ %colorlinks=true,
+ %breaklinks=true,
+ %urlcolor=red,
+ %citecolor=blue,
+ %linkcolor=blue,
+ %unicode=true,
+ %]
+ %{hyperref}
+\usepackage{url}
+
+
+
+\begin{document}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Zvolte jednu z moznosti
+% Choose one of the following options
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\selectlanguage{czech}
+%\selectlanguage{english}
+
+% prikaz \typeout vypise vyse uvedena nastaveni v prikazovem okne
+% pro pohodlne ladeni prace
+
+
+\iflanguage{czech}{
+ \typeout{************************************************}
+ \typeout{Zvoleny jazyk: cestina}
+ \typeout{Typ prace: \TypeOfWork}
+ \typeout{Studijni program: \StudProgram}
+ \typeout{Obor: \StudBranch}
+ \typeout{Jmeno: \FirstandFamilyName}
+ \typeout{Nazev prace: \WorkTitle}
+ \typeout{Vedouci prace: \Supervisor}
+ \typeout{***************************************************}
+ \newcommand\Department{Katedra řídicí techniky}
+ \newcommand\Faculty{Fakulta elektrotechnická}
+ \newcommand\University{České vysoké učení technické v Praze}
+ \newcommand\labelSupervisor{Vedoucí práce}
+ \newcommand\labelStudProgram{Studijní program}
+ \newcommand\labelStudBranch{Obor}
+}{
+ \typeout{************************************************}
+ \typeout{Language: english}
+ \typeout{Type of Work: \TypeOfWork}
+ \typeout{Study Program: \StudProgram}
+ \typeout{Study Branch: \StudBranch}
+ \typeout{Author: \FirstandFamilyName}
+ \typeout{Title: \WorkTitle}
+ \typeout{Supervisor: \Supervisor}
+ \typeout{***************************************************}
+ \newcommand\Department{Department of Computer Science and Engineering}
+ \newcommand\Faculty{Faculty of Electrical Engineering}
+ \newcommand\University{Czech Technical University in Prague}
+ \newcommand\labelSupervisor{Supervisor}
+ \newcommand\labelStudProgram{Study Programme}
+ \newcommand\labelStudBranch{Field of Study}
+}
+
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%% Poznamky ke kompletaci prace
+% Nasledujici pasaz uzavrenou v {} ve sve praci samozrejme
+% zakomentujte nebo odstrante.
+% Ve vysledne svazane praci bude nahrazena skutecnym
+% oficialnim zadanim vasi prace.
+%{
+%\pagenumbering{roman} \cleardoublepage \thispagestyle{empty}
+%\subsection*{Na tomto místě bude oficiální zadání vaší práce}
+%\begin{itemize}
+%\item Toto zadání je podepsané děkanem a vedoucím katedry,
+%\item musíte si ho vyzvednout na studiijním oddělení Katedry počítačů na Karlově náměstí,
+%\item v jedné odevzdané práci bude originál tohoto zadání (originál zůstává po obhajobě na katedře),
+%\item ve druhé bude na stejném místě neověřená kopie tohoto dokumentu (tato se vám vrátí po obhajobě).
+%\end{itemize}
+%\subsection*{Official thesis specification should be here}
+%\begin{itemize}
+%\item Ask study office on our department to obtain it!
+%\item You have to post two copies -- original and copy of your thesis.
+%\item Official thesis specification has to be placed in each of them (original and copy).
+%\item You receive back the thesis copy after succesful defension of your thesis.
+%\item The original of your thesis is hold on departmnet after the defension.
+%\end{itemize}
+%\subsection*{Pokyny}
+%\begin{itemize}
+%\item Projednejte osnovu práce se svým vedoucím! Každému vedoucímu a typu práce nemusí níže prezentovaná osnova vyhovovat.
+%\item Čtěte pokyny v komentářích zdrojého souboru (.tex). Je tam mnoho užitečných informací.
+%\end{itemize}
+%\subsection*{Instruction}
+%\begin{itemize}
+%\item Discuss the intended structure of your thesis with your supervisor! Not each supervisor is satisfied with structure suplied in this document!
+%\item Read insructions in comments in the source code of this document (.tex file). Many useful additional instructions are included.
+%\end{itemize}
+%\newpage
+%}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%% Titulni stranka / Title page
+
+\coverpagestarts
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%% Podekovani / Acknowledgements
+
+\acknowledgements
+\noindent
+Rád bych poděkoval Ing. Pavlu Píšovi, Ph.D. za ochotu být vedoucím mé diplomové práce a za věcné rady a připomínky.
+%Zde můžete napsat své poděkování, pokud chcete a máte komu děkovat.
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%% Prohlaseni / Declaration
+
+\declaration{V Praze dne 1.\,5.\,2011}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%% Abstract
+
+\abstractpage
+
+FIXME
+\vglue60mm
+
+\noindent{\Huge \textbf{Abstrakt}}
+\vspace{8ex}
+
+
+Cílem této práce je vysvětlit základní principy komunikace ovladače operačního systému s hardwarem. Pro názornost jsou v práci popsány postupy implementace UIO a Comedi ovladače pro měřící kartu Humusoft MF624 pro operační systém GNU/Linux.
+
+Součástí této práce je i implementace základních funkcí (DAC, ADC, DIO) karty Humusoft MF624 do emulátoru Qemu, aby si případný zájemce mohl popsané postupy vyzkoušet, aniž by vlastnil potřebný hardware.
+
+Od čtenáře se očekává základní znalost používání operačního systému GNU/Linux, dobrá znalost programovacího jazyka C a základní znalost anglického jazyka.
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Obsah / Table of Contents
+
+\tableofcontents
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Seznam obrazku / List of Figures
+
+\listoffigures
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Seznam tabulek / List of Tables
+
+\listoftables
+
+
+%**************************************************************
+
+\mainbodystarts
+% horizontalní mezera mezi dvema odstavci
+%\parskip=5pt
+%JZ 11.12.2008 parskip bez tolerance? To neni rozumne, myslel jsem, ze sazime v TeXu, ne ve Wordu!
+\parskip=5pt plus 4pt minus 4pt
+% odstazeni prvniho radku odstavce (neaplikuje se na prvni odstace
+% kapitol, sekci, podsekci atd.)
+%\parindent=10pt
+%JZ 11.12.2008 -- indent v zavislosti na base font, proc 10pt?
+\parindent=1.5em
+% pokud chcete selektivne zamezit odsazeni 1. radku nektereho odstavce
+% pouzijte prikaz \noindent.
+
+%**************************************************************
+
+
+
+\include{dip_text}
+
+
+
+
+
+%*****************************************************************************
+% Seznam literatury je v samostatnem souboru reference.bib. Ten
+% upravte dle vlastnich potreb, potom zpracujte (a do textu
+% zapracujte) pomoci prikazu bibtex a nasledne pdflatex (nebo
+% latex). Druhy z nich alespon 2x, aby se poresily odkazy.
+
+%\bibliographystyle{abbrv}
+\bibliographystyle{plain}
+%\bibliographystyle{psc}
+{
+%JZ: 11.12.2008 (Nekdo chce mit v techto ukazkovych odkazech take odkaz
+%JZ: na CSTeX, tak at to k necemu vypada...)
+\def\CS{$\cal C\kern-0.1667em\lower.5ex\hbox{$\cal S$}\kern-0.075em $}
+\bibliography{reference}
+}
+\nocite{*}
+% M. Dušek radi:
+%\bibliographystyle{alpha}
+% kdy citace ma tvar [AutorRok] (napriklad [Cook97]). Sice to asi neni podle ceske normy (BTW BibTeX stejne neodpovida ceske norme), ale je to nejprehlednejsi.
+%*****************************************************************************
+
+
+\end{document}