Classification of linear differential equations near infinity